C# Class DotNetWorkQueue.ATaskScheduler

A task scheduler for IConsumerQueueScheduler
Inheritance: System.Threading.Tasks.TaskScheduler, ITaskScheduler
Afficher le fichier Open project: blehnen/DotNetWorkQueue Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Method Details

AddTask() public abstract méthode

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

AddWorkGroup() public abstract méthode

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

AddWorkGroup() public abstract méthode

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

Dispose() public méthode

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

Dispose() protected abstract méthode

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

RoomForNewWorkGroupTask() public abstract méthode

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

Start() public abstract méthode

Starts this instance.
public abstract Start ( ) : void
Résultat void

Subscribe() public abstract méthode

Informs the scheduler that a client is connected
public abstract Subscribe ( ) : int
Résultat int

UnSubscribe() public abstract méthode

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