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

Provides a SynchronizationContext wrapper for a TaskScheduler.
Inheritance: System.Threading.SynchronizationContext
Afficher le fichier Open project: hussein-aitlahcen/codebreak

Méthodes publiques

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

Méthode Description
TaskSchedulerSynchronizationContext ( TaskScheduler scheduler ) : System

Initializes the context with the specified scheduler.

Method Details

Post() public méthode

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

Send() public méthode

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