Struct AsyncConnector<TPortfolioKey, TSecurityKey>.SynchronizationContextAwaiter
- Namespace
- ATAS.DataFeedsCore
- Assembly
- ATAS.DataFeedsCore.dll
Custom awaiter to control continuation execution on the ConnectorSynchronizationContext
public readonly struct AsyncConnector<TPortfolioKey, TSecurityKey>.SynchronizationContextAwaiter
- Extension Methods
Constructors
SynchronizationContextAwaiter(SynchronizationContext)
Initializes the awaiter of a context.
public SynchronizationContextAwaiter(SynchronizationContext context)
Parameters
contextSynchronizationContextThe context to continue on.
Properties
IsCompleted
Whether the caller already runs on the context: then the code after the await continues at once.
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
continuationActionThe code after the
await.