C# Класс Codebreak.Framework.Generic.TaskSchedulerExtensions.TaskSchedulerSynchronizationContext

Provides a SynchronizationContext wrapper for a TaskScheduler.
Наследование: System.Threading.SynchronizationContext
Показать файл Открыть проект

Открытые методы

Метод Описание
Post ( SendOrPostCallback d, object state ) : void

Dispatches an asynchronous message to the synchronization context.

Send ( SendOrPostCallback d, object state ) : void

Dispatches a synchronous message to the synchronization context.

Приватные методы

Метод Описание
TaskSchedulerSynchronizationContext ( TaskScheduler scheduler ) : System

Initializes the context with the specified scheduler.

Описание методов

Post() публичный Метод

Dispatches an asynchronous message to the synchronization context.
public Post ( SendOrPostCallback d, object state ) : void
d SendOrPostCallback The System.Threading.SendOrPostCallback delegate to call.
state object The object passed to the delegate.
Результат void

Send() публичный Метод

Dispatches a synchronous message to the synchronization context.
public Send ( SendOrPostCallback d, object state ) : void
d SendOrPostCallback The System.Threading.SendOrPostCallback delegate to call.
state object The object passed to the delegate.
Результат void