C# 클래스 DotNetWorkQueue.Queue.WorkerCollection

Contains a collection of IWorker
Does not contain IPrimaryWorker
상속: IWorkerCollection
파일 보기 프로젝트 열기: blehnen/DotNetWorkQueue

공개 메소드들

메소드 설명
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

PauseWorkers ( ) : void

Pauses all workers. Call ResumeWorkers to resume looking for work.

ResumeWorkers ( ) : void

Resumes all workers. Call PauseWorkers to pause looking for work

Start ( ) : void

Starts all workers.

Stop ( ) : void

Stops all workers.

WorkerCollection ( IWorkerConfiguration workerConfiguration, IWorkerFactory workerFactory, StopWorker stopWorker, ILogFactory log, IWorkerWaitForEventOrCancel workerPause ) : System

Initializes a new instance of the WorkerCollection class.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

비공개 메소드들

메소드 설명
AddWorker ( ) : void

Adds a new worker.

CreateWorkers ( ) : void

Creates the workers

RaiseSystemException ( object sender, WorkerErrorEventArgs e ) : void

Raises the system exception.

RaiseUserException ( object sender, WorkerErrorEventArgs e ) : void

Raises the user exception.

메소드 상세

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

PauseWorkers() 공개 메소드

Pauses all workers. Call ResumeWorkers to resume looking for work.
public PauseWorkers ( ) : void
리턴 void

ResumeWorkers() 공개 메소드

Resumes all workers. Call PauseWorkers to pause looking for work
public ResumeWorkers ( ) : void
리턴 void

Start() 공개 메소드

Starts all workers.
Start must only be called once
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops all workers.
public Stop ( ) : void
리턴 void

WorkerCollection() 공개 메소드

Initializes a new instance of the WorkerCollection class.
public WorkerCollection ( IWorkerConfiguration workerConfiguration, IWorkerFactory workerFactory, StopWorker stopWorker, ILogFactory log, IWorkerWaitForEventOrCancel workerPause ) : System
workerConfiguration IWorkerConfiguration The worker configuration.
workerFactory IWorkerFactory The worker factory.
stopWorker StopWorker The stop worker.
log ILogFactory The log.
workerPause IWorkerWaitForEventOrCancel The worker pause.
리턴 System