C# 클래스 DotNetWorkQueue.ATaskScheduler

A task scheduler for IConsumerQueueScheduler
상속: System.Threading.Tasks.TaskScheduler, ITaskScheduler
파일 보기 프로젝트 열기: blehnen/DotNetWorkQueue 1 사용 예제들

공개 메소드들

메소드 설명
AddTask ( System.Threading.Tasks.Task task ) : void

Adds a new task to the scheduler.

AddWorkGroup ( string name, int concurrencyLevel ) : IWorkGroup

Adds a new work group.

AddWorkGroup ( string name, int concurrencyLevel, int maxQueueSize ) : IWorkGroup

Adds a new work group.

Dispose ( ) : void

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

RoomForNewWorkGroupTask ( IWorkGroup group ) : RoomForNewTaskResult

If true, the task scheduler has room for the specified work group task

Start ( ) : void

Starts this instance.

Subscribe ( ) : int

Informs the scheduler that a client is connected

UnSubscribe ( int id ) : void

Informs the scheduler that a client has disconnected

보호된 메소드들

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

Releases unmanaged and - optionally - managed resources.

메소드 상세

AddTask() 공개 추상적인 메소드

Adds a new task to the scheduler.
public abstract AddTask ( System.Threading.Tasks.Task task ) : void
task System.Threading.Tasks.Task The task.
리턴 void

AddWorkGroup() 공개 추상적인 메소드

Adds a new work group.
public abstract AddWorkGroup ( string name, int concurrencyLevel ) : IWorkGroup
name string The name.
concurrencyLevel int The concurrency level.
리턴 IWorkGroup

AddWorkGroup() 공개 추상적인 메소드

Adds a new work group.
public abstract AddWorkGroup ( string name, int concurrencyLevel, int maxQueueSize ) : IWorkGroup
name string The name.
concurrencyLevel int The concurrency level.
maxQueueSize int Maximum size of the queue.
리턴 IWorkGroup

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 abstract Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

RoomForNewWorkGroupTask() 공개 추상적인 메소드

If true, the task scheduler has room for the specified work group task
public abstract RoomForNewWorkGroupTask ( IWorkGroup group ) : RoomForNewTaskResult
group IWorkGroup The group.
리턴 RoomForNewTaskResult

Start() 공개 추상적인 메소드

Starts this instance.
public abstract Start ( ) : void
리턴 void

Subscribe() 공개 추상적인 메소드

Informs the scheduler that a client is connected
public abstract Subscribe ( ) : int
리턴 int

UnSubscribe() 공개 추상적인 메소드

Informs the scheduler that a client has disconnected
public abstract UnSubscribe ( int id ) : void
id int The client identifier.
리턴 void