C# Class DotNetWorkQueue.Queue.StopWorker

Gracefully shuts down a IWorker instance(s)
Afficher le fichier Open project: blehnen/DotNetWorkQueue Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

Stop() public méthode

Stops the specified workers.
public Stop ( List workers ) : void
workers List The workers.
Résultat void

StopPrimary() public méthode

Stops the specified primary worker
public StopPrimary ( IPrimaryWorker worker ) : void
worker IPrimaryWorker The worker.
Résultat void

StopWorker() public méthode

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.
Résultat System