C# Class AccidentalFish.ApplicationSupport.Core.Threading.AsyncPump.SingleThreadSynchronizationContext

Provides a SynchronizationContext that's single-threaded.
Inheritance: System.Threading.SynchronizationContext
Show file Open project: JamesRandall/AccidentalFish.ApplicationSupport

Public Methods

Method Description
Complete ( ) : void

Notifies the context that no more work will arrive.

Post ( SendOrPostCallback d, object state ) : void

Dispatches an asynchronous message to the synchronization context.

RunOnCurrentThread ( ) : void

Runs an loop to process all queued work items.

Send ( SendOrPostCallback d, object state ) : void

Not supported.

Method Details

Complete() public method

Notifies the context that no more work will arrive.
public Complete ( ) : void
return void

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

RunOnCurrentThread() public method

Runs an loop to process all queued work items.
public RunOnCurrentThread ( ) : void
return void

Send() public method

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