C# 클래스 DotNetWorkQueue.Queue.StopWorker

Gracefully shuts down a IWorker instance(s)
파일 보기 프로젝트 열기: blehnen/DotNetWorkQueue 1 사용 예제들

공개 메소드들

메소드 설명
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