Loading...
Searching...
No Matches
ATAS.DataFeedsCore.IMessageQueue< TMessage > Interface Template Reference
Inheritance diagram for ATAS.DataFeedsCore.IMessageQueue< TMessage >:
[legend]
Collaboration diagram for ATAS.DataFeedsCore.IMessageQueue< TMessage >:
[legend]

Public Member Functions

void Enqueue (IDataFeedConnector connector, TMessage message)
 
void Enqueue (IDataFeedConnector connector, Action action)
 
void EnqueueContinuation (IDataFeedConnector connector, Action continuation)
 Queues an await continuation of the connector's thread (the connector's synchronization context).
A continuation belongs to the connection session it was posted in: once that session has ended (the connector's final disconnect stopped the queue), it must not run in a later one - it would resume the code of an abandoned connect attempt or of a closed connection inside the new connection (complete the new attempt, start transports, process stale data). Unlike a message queued while the connector is disconnected, which waits for the next connect, a continuation posted after its session ended is dropped.
The default implementation queues it as an ordinary action.
 
void Start (IDataFeedConnector connector, Action< TMessage > handler)
 
void Stop (IDataFeedConnector connector)
 

Properties

TimeSpan HeartbeatTimeout [get, set]
 

Events

Action? Heartbeat
 

Member Function Documentation

◆ Enqueue() [1/2]

◆ Enqueue() [2/2]

◆ EnqueueContinuation()

void ATAS.DataFeedsCore.IMessageQueue< TMessage >.EnqueueContinuation ( IDataFeedConnector  connector,
Action  continuation 
)

Queues an await continuation of the connector's thread (the connector's synchronization context).
A continuation belongs to the connection session it was posted in: once that session has ended (the connector's final disconnect stopped the queue), it must not run in a later one - it would resume the code of an abandoned connect attempt or of a closed connection inside the new connection (complete the new attempt, start transports, process stale data). Unlike a message queued while the connector is disconnected, which waits for the next connect, a continuation posted after its session ended is dropped.
The default implementation queues it as an ordinary action.

Implemented in ATAS.DataFeedsCore.BaseMessageQueue< TMessage, TItem >.

◆ Start()

◆ Stop()

Property Documentation

◆ HeartbeatTimeout

Event Documentation

◆ Heartbeat

Action? ATAS.DataFeedsCore.IMessageQueue< TMessage >.Heartbeat

The documentation for this interface was generated from the following file: