C# Class Codebreak.Framework.Generic.TaskSchedulerExtensions.TaskSchedulerSynchronizationContext

Provides a SynchronizationContext wrapper for a TaskScheduler.
Inheritance: System.Threading.SynchronizationContext
Mostrar archivo Open project: hussein-aitlahcen/codebreak

Public Methods

Method Description
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.

Private Methods

Method Description
TaskSchedulerSynchronizationContext ( TaskScheduler scheduler ) : System

Initializes the context with the specified scheduler.

Method Details

Post() public method

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.
return void

Send() public method

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.
return void