C# Class DotNetWorkQueue.Queue.StopWorker

Gracefully shuts down a IWorker instance(s)
Exibir arquivo Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Methods

Method Description
SetCancelTokenForStopping ( ) : void

Sets the cancel flag indicating that workers should no longer look for new work to process

Stop ( List workers ) : void

Stops the specified workers.

StopPrimary ( IPrimaryWorker worker ) : void

Stops the specified primary worker

StopWorker ( IQueueCancelWork cancelWorkSource, IWorkerConfiguration configuration, ILogFactory log, IWorkerWaitForEventOrCancel waitForEventOrCancel ) : System

Initializes a new instance of the StopWorker class.

Method Details

SetCancelTokenForStopping() public method

Sets the cancel flag indicating that workers should no longer look for new work to process
public SetCancelTokenForStopping ( ) : void
return void

Stop() public method

Stops the specified workers.
public Stop ( List workers ) : void
workers List The workers.
return void

StopPrimary() public method

Stops the specified primary worker
public StopPrimary ( IPrimaryWorker worker ) : void
worker IPrimaryWorker The worker.
return void

StopWorker() public method

Initializes a new instance of the StopWorker class.
public StopWorker ( IQueueCancelWork cancelWorkSource, IWorkerConfiguration configuration, ILogFactory log, IWorkerWaitForEventOrCancel waitForEventOrCancel ) : System
cancelWorkSource IQueueCancelWork The cancel work source.
configuration IWorkerConfiguration The configuration.
log ILogFactory The log.
waitForEventOrCancel IWorkerWaitForEventOrCancel The wait for event or cancel.
return System