C# Class DotNetWorkQueue.Queue.Worker

Message processor for non-async queues
Inheritance: MultiWorkerBase, IWorker
Exibir arquivo Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
Start ( ) : void

Starts this instance.

Stop ( ) : void

Stops this instance.

Worker ( IWorkerNameFactory nameFactory, IWorkerWaitForEventOrCancel pauseEvent, ILogFactory log, IMessageProcessingFactory messageProcessing, WorkerTerminate workerTerminate, StopThread stopThead ) : System.Threading

Initializes a new instance of the Worker class.

Private Methods

Method Description
MainLoop ( ) : void

Looks for messages to process

Method Details

Start() public method

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

Stop() public method

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

Worker() public method

Initializes a new instance of the Worker class.
public Worker ( IWorkerNameFactory nameFactory, IWorkerWaitForEventOrCancel pauseEvent, ILogFactory log, IMessageProcessingFactory messageProcessing, WorkerTerminate workerTerminate, StopThread stopThead ) : System.Threading
nameFactory IWorkerNameFactory The name factory.
pauseEvent IWorkerWaitForEventOrCancel The pause event.
log ILogFactory The log.
messageProcessing IMessageProcessingFactory The message processing.
workerTerminate WorkerTerminate The worker terminate.
stopThead StopThread The stop thread.
return System.Threading