C# Class DotNetWorkQueue.Queue.PrimaryWorker

Represents the primary worker; all non-async queues have one of these.
Inheritance: MultiWorkerBase, IPrimaryWorker
Afficher le fichier Open project: blehnen/DotNetWorkQueue

Méthodes publiques

Méthode Description
PrimaryWorker ( IWorkerNameFactory nameFactory, ILogFactory log, IMessageProcessingFactory messageProcessing, WorkerTerminate workerTerminate, IWorkerCollection workerCollection, StopThread stopThead ) : System

Initializes a new instance of the PrimaryWorker class.

Start ( ) : void

Starts this instance.

Stop ( ) : void

Stops this instance.

Private Methods

Méthode Description
MainLoop ( ) : void

Main processing loop for internal thread.

MessageProcessingOnNotIdle ( object sender, EventArgs e ) : void

Determines the action to take when the message processing module indicates it's not idle.

Method Details

PrimaryWorker() public méthode

Initializes a new instance of the PrimaryWorker class.
public PrimaryWorker ( IWorkerNameFactory nameFactory, ILogFactory log, IMessageProcessingFactory messageProcessing, WorkerTerminate workerTerminate, IWorkerCollection workerCollection, StopThread stopThead ) : System
nameFactory IWorkerNameFactory The name factory.
log ILogFactory The log.
messageProcessing IMessageProcessingFactory The message processing.
workerTerminate WorkerTerminate The worker terminate.
workerCollection IWorkerCollection The worker collection.
stopThead StopThread The stop thread.
Résultat System

Start() public méthode

Starts this instance.
public Start ( ) : void
Résultat void

Stop() public méthode

Stops this instance.
public Stop ( ) : void
Résultat void