Table of Contents

Struct AsyncConnector<TPortfolioKey, TSecurityKey>.SynchronizationContextQueueAwaiter

Namespace
ATAS.DataFeedsCore
Assembly
ATAS.DataFeedsCore.dll

Custom awaiter to control continuation execution on the ConnectorSynchronizationContext This awaiter always passes the continuation to the connector's queue

public readonly struct AsyncConnector<TPortfolioKey, TSecurityKey>.SynchronizationContextQueueAwaiter
Extension Methods

Constructors

SynchronizationContextQueueAwaiter(SynchronizationContext)

Initializes the awaiter of a context.

public SynchronizationContextQueueAwaiter(SynchronizationContext context)

Parameters

context SynchronizationContext

The context to continue on.

Properties

IsCompleted

Always false: the continuation is always queued, also on the connector's thread.

public bool IsCompleted { get; }

Property Value

bool

Methods

GetResult()

Ends the await; there is no result.

public void GetResult()

OnCompleted(Action)

Posts the continuation to the context.

public void OnCompleted(Action continuation)

Parameters

continuation Action

The code after the await.