Class EcoreSynchronizationContext
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
Provides a synchronization context for the EFL application.
public class EcoreSynchronizationContext : SynchronizationContext
- Inheritance
-
objectSystem.Threading.SynchronizationContextEcoreSynchronizationContext
Constructors
View SourceEcoreSynchronizationContext()
Initializes a new instance of the EcoreSynchronizationContext class.
Declaration
public EcoreSynchronizationContext()
Methods
View SourceInitialize()
Initilizes a new EcoreSynchronizationContext and installs into the current thread.
Declaration
public static void Initialize()
Remarks
It is equivalent
SetSynchronizationContext(new EcoreSynchronizationContext());
Post(SendOrPostCallback, object)
Dispatches an asynchronous message to a Ecore main loop.
Declaration
public override void Post(SendOrPostCallback d, object state)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.SendOrPostCallback | d | System.Threading.SendOrPostCallbackThe SendOrPostCallback delegate to call. |
object | state | objectThe object passed to the delegate. |
Overrides
System.Threading.SynchronizationContext.Post(System.Threading.SendOrPostCallback, object)
Remarks
The Post method starts an asynchronous request to post a message.
Send(SendOrPostCallback, object)
Dispatches an synchronous message to a Ecore main loop.
Declaration
public override void Send(SendOrPostCallback d, object state)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.SendOrPostCallback | d | System.Threading.SendOrPostCallbackThe SendOrPostCallback delegate to call. |
object | state | objectThe object passed to the delegate. |
Overrides
System.Threading.SynchronizationContext.Send(System.Threading.SendOrPostCallback, object)
Remarks
The Send method starts a synchronous request to send a message.