The Dispatcher type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | Dispatcher |
Creates a Dispatcher, if a Dispatcher has been created in the current thread an exception will be thrown.
|
Methods
Name | Description | |
---|---|---|
![]() | CheckAccessLimitation | (Overrides DispatcherBase..::..CheckAccessLimitation()()()().) |
![]() ![]() | CreateSafeAction<(Of <<'(T>)>>) |
Creates a new action based upon an other action which will handle exceptions. Use this to wrap safe action for tasks.
|
![]() ![]() | CreateSafeFunction<(Of <<'(T>)>>) |
Creates a new function based upon an other function which will handle exceptions. Use this to wrap safe functions for tasks.
|
![]() | Dispatch(Action) |
Creates a new Task based upon the given action.
(Inherited from DispatcherBase.) |
![]() | Dispatch(Task) |
Dispatches a given Task.
(Inherited from DispatcherBase.) |
![]() | Dispatch<(Of <<'(T>)>>)(Func<(Of <<'(T>)>>)) |
Creates a new Task based upon the given action.
(Inherited from DispatcherBase.) |
![]() | Dispose |
Disposes all dispatcher resources and remaining tasks.
(Overrides DispatcherBase..::..Dispose()()()().) |
![]() | ProcessNextTask()()()() |
Processed the next available task.
Only call this inside the thread you want the tasks to process to be processed.
|
![]() | ProcessNextTask(WaitHandle) |
Processes the next available tasks and returns true when it has been processed and false otherwise.
This method will block until th exitHandle has been set or a task should be processed.
Only call this inside the thread you want the tasks to process to be processed.
|
![]() | ProcessTasks()()()() |
Processes all remaining tasks. Call this periodically to allow the Dispatcher to handle dispatched tasks.
Only call this inside the thread you want the tasks to process to be processed.
|
![]() | ProcessTasks(WaitHandle) |
Processes all remaining tasks and returns true when something has been processed and false otherwise.
This method will block until th exitHandle has been set or tasks should be processed.
Only call this inside the thread you want the tasks to process to be processed.
|
![]() | ReorderTasks | (Inherited from DispatcherBase.) |
Extension Methods
Name | Description | |
---|---|---|
![]() | RunAsync(String, array<Object>[]()[][]) | Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.) |
![]() | RunAsync(String, TaskDistributor, array<Object>[]()[][]) | Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.) |
![]() | RunAsync<(Of <<'(T>)>>)(String, array<Object>[]()[][]) | Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.) |
![]() | RunAsync<(Of <<'(T>)>>)(String, TaskDistributor, array<Object>[]()[][]) | Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.) |
Fields
Name | Description | |
---|---|---|
![]() | AllowAccessLimitationChecks | (Inherited from DispatcherBase.) |
![]() | dataEvent | (Inherited from DispatcherBase.) |
![]() ![]() | mainDispatcher | |
![]() | taskList | (Inherited from DispatcherBase.) |
![]() | TaskSortingSystem |
Set the task reordering system
(Inherited from DispatcherBase.) |
Properties
Name | Description | |
---|---|---|
![]() ![]() | Current |
Returns the Dispatcher instance of the current thread. When no instance has been created an exception will be thrown.
|
![]() ![]() | CurrentNoThrow |
Returns the Dispatcher instance of the current thread.
|
![]() ![]() | CurrentTask |
Returns the task which is currently being processed. Use this only inside a task operation.
|
![]() ![]() | Main |
Returns the first created Dispatcher instance, in most cases this will be the Dispatcher for the main thread. When no instance has been created an exception will be thrown.
|
![]() ![]() | MainNoThrow |
Returns the first created Dispatcher instance.
|
![]() | TaskCount |
Returns the currently existing task count. Early aborted tasks will count too.
(Inherited from DispatcherBase.) |