C# Класс DotNetWorkQueue.Queue.StopWorker

Gracefully shuts down a IWorker instance(s)
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

SetCancelTokenForStopping() публичный Метод

Sets the cancel flag indicating that workers should no longer look for new work to process
public SetCancelTokenForStopping ( ) : void
Результат void

Stop() публичный Метод

Stops the specified workers.
public Stop ( List workers ) : void
workers List The workers.
Результат void

StopPrimary() публичный Метод

Stops the specified primary worker
public StopPrimary ( IPrimaryWorker worker ) : void
worker IPrimaryWorker The worker.
Результат void

StopWorker() публичный Метод

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.
Результат System