C# Class DotNetWorkQueue.Queue.PrimaryWorker

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

Public Methods

Method 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

Method 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 method

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.
return System

Start() public method

Starts this instance.
public Start ( ) : void
return void

Stop() public method

Stops this instance.
public Stop ( ) : void
return void