Class EcoreSynchronizationContext

Definition

Namespace:
ElmSharp
Assembly:
ElmSharp.dll
API Level:
preview

Provides a synchronization context for the EFL application.

C#
Copy
public class EcoreSynchronizationContext : SynchronizationContext
Inheritance
System.Object
System.Threading.SynchronizationContext
EcoreSynchronizationContext

Constructors

View Source

EcoreSynchronizationContext()

Initializes a new instance of the EcoreSynchronizationContext class.

Declaration
C#
Copy
public EcoreSynchronizationContext()
API Level: preview

Methods

View Source

Initialize()

Initilizes a new EcoreSynchronizationContext and installs into the current thread.

Declaration
C#
Copy
public static void Initialize()
Remarks

It is equivalent

Copy
SetSynchronizationContext(new EcoreSynchronizationContext());
API Level: preview
View Source

Post(SendOrPostCallback, Object)

Dispatches an asynchronous message to a Ecore main loop.

Declaration
C#
Copy
public override void Post(SendOrPostCallback d, object state)
Parameters
Type Name Description
System.Threading.SendOrPostCallback d

The System.Threading.SendOrPostCallback delegate to call.

System.Object state

The object passed to the delegate.

Overrides
System.Threading.SynchronizationContext.Post(System.Threading.SendOrPostCallback, System.Object)
Remarks

The Post method starts an asynchronous request to post a message.

API Level: preview
View Source

Send(SendOrPostCallback, Object)

Dispatches an synchronous message to a Ecore main loop.

Declaration
C#
Copy
public override void Send(SendOrPostCallback d, object state)
Parameters
Type Name Description
System.Threading.SendOrPostCallback d

The System.Threading.SendOrPostCallback delegate to call.

System.Object state

The object passed to the delegate.

Overrides
System.Threading.SynchronizationContext.Send(System.Threading.SendOrPostCallback, System.Object)
Remarks

The Send method starts a synchronous request to send a message.

API Level: preview