C# Class Methods.ActorModel.ActorSynchronizationContext

Runs posted methods in order, without overlap, on some underlying synchronization context.
Inheritance: System.Threading.SynchronizationContext
Mostra file Open project: Strilanc/Methods Class Usage Examples

Public Methods

Method Description
ActorSynchronizationContext ( SynchronizationContext subContext = null ) : System

Creates a new exclusive synchronization context, which runs callbacks on either an optional non-null context or else the thread pool.

CreateCopy ( ) : SynchronizationContext
Post ( SendOrPostCallback d, object state ) : void
Send ( SendOrPostCallback d, object state ) : void

Private Methods

Method Description
Consume ( object state ) : void

Method Details

ActorSynchronizationContext() public method

Creates a new exclusive synchronization context, which runs callbacks on either an optional non-null context or else the thread pool.
public ActorSynchronizationContext ( SynchronizationContext subContext = null ) : System
subContext System.Threading.SynchronizationContext The synchronization context that actions will be run on. Defaults to the thread pool when null.
return System

CreateCopy() public method

public CreateCopy ( ) : SynchronizationContext
return System.Threading.SynchronizationContext

Post() public method

public Post ( SendOrPostCallback d, object state ) : void
d SendOrPostCallback
state object
return void

Send() public method

public Send ( SendOrPostCallback d, object state ) : void
d SendOrPostCallback
state object
return void