Class ForegroundSynchronizationContext
Synchronization context that uses the ForegroundTaskScheduler.
Namespace: Evergine.Framework.Threading
Assembly: Evergine.Framework.dll
Syntax
public class ForegroundSynchronizationContext : SynchronizationContext
Methods
Post(SendOrPostCallback, object)
When overridden in a derived class, dispatches an asynchronous message to a synchronization context.
Declaration
public override void Post(SendOrPostCallback d, object state)
Parameters
Type | Name | Description |
---|---|---|
SendOrPostCallback | d | The SendOrPostCallback delegate to call. |
object | state | The object passed to the delegate. |
Overrides
Send(SendOrPostCallback, object)
When overridden in a derived class, dispatches a synchronous message to a synchronization context.
Declaration
public override void Send(SendOrPostCallback d, object state)
Parameters
Type | Name | Description |
---|---|---|
SendOrPostCallback | d | The SendOrPostCallback delegate to call. |
object | state | The object passed to the delegate. |
Overrides
Exceptions
Type | Condition |
---|---|
NotSupportedException | The method was called in a Windows Store app. The implementation of SynchronizationContext for Windows Store apps does not support the Send(SendOrPostCallback, object) method. |