C# 클래스 DotNetWorkQueue.TaskScheduling.SchedulerTaskFactory

Extends the standard task factory to allow for trying to add a new task, but failing to do so.
상속: ITaskFactory
파일 보기 프로젝트 열기: blehnen/DotNetWorkQueue

공개 메소드들

메소드 설명
SchedulerTaskFactory ( ITaskSchedulerFactory schedulerFactory ) : System

Initializes a new instance of the SchedulerTaskFactory class.

TryStartNew ( Action action, StateInformation state, Action continueWith, System.Threading.Tasks.Task &task ) : TryStartNewResult

Tries to add a new task to the task factory

The factory may reject the request if it's too busy.

비공개 메소드들

메소드 설명
SchedulerHasRoom ( StateInformation state ) : bool

Returns true if the scheduler has room for another task

메소드 상세

SchedulerTaskFactory() 공개 메소드

Initializes a new instance of the SchedulerTaskFactory class.
public SchedulerTaskFactory ( ITaskSchedulerFactory schedulerFactory ) : System
schedulerFactory ITaskSchedulerFactory The scheduler factory.
리턴 System

TryStartNew() 공개 메소드

Tries to add a new task to the task factory
The factory may reject the request if it's too busy.
public TryStartNew ( Action action, StateInformation state, Action continueWith, System.Threading.Tasks.Task &task ) : TryStartNewResult
action Action The action.
state StateInformation The state.
continueWith Action The continue with action.
task System.Threading.Tasks.Task The task.
리턴 TryStartNewResult