Search Results for

    Show / Hide Table of Contents

    Class ForegroundSynchronizationContext

    Synchronization context that uses the ForegroundTaskScheduler.

    Inheritance
    object
    SynchronizationContext
    ForegroundSynchronizationContext
    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
    SynchronizationContext.Post(SendOrPostCallback, object)

    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
    SynchronizationContext.Send(SendOrPostCallback, object)
    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.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX