Class EventOnlyArchiveWriter
public class EventOnlyArchiveWriter : RealtimeArchiveWriter
- Inheritance
-
EventOnlyArchiveWriter
- Derived
- Inherited Members
Methods
ClearErrors()
public override void ClearErrors()
ConnectionUpdateRequired(Connection)
Check whether calling Update(ConnectionInfo, CancellationToken) is necessary
protected override bool ConnectionUpdateRequired(Connection connection)
Parameters
connectionConnection
Returns
CreateRequestBodyStream(int)
Creates a request body stream for the specified exchange ID.
public override Stream CreateRequestBodyStream(int exchangeId)
Parameters
exchangeIdintThe ID of the exchange.
Returns
- Stream
A stream representing the request body.
CreateResponseBodyStream(int)
Creates the response body stream for the given exchange ID.
public override Stream CreateResponseBodyStream(int exchangeId)
Parameters
exchangeIdintThe identifier of the exchange.
Returns
- Stream
The response body stream.
CreateWebSocketRequestContent(int, int)
Creates the content of a WebSocket request.
public override Stream CreateWebSocketRequestContent(int exchangeId, int messageId)
Parameters
Returns
CreateWebSocketResponseContent(int, int)
Creates the content for the WebSocket response.
public override Stream CreateWebSocketResponseContent(int exchangeId, int messageId)
Parameters
Returns
- Stream
A Stream containing the response content.
ExchangeUpdateRequired(Exchange)
Check whether calling Update(ExchangeInfo, CancellationToken) is necessary
protected override bool ExchangeUpdateRequired(Exchange exchange)
Parameters
exchangeExchange
Returns
InternalUpdate(DownstreamErrorInfo, CancellationToken)
Performs the internal update logic for the specified connection.
protected override void InternalUpdate(DownstreamErrorInfo connectionInfo, CancellationToken cancellationToken)
Parameters
connectionInfoDownstreamErrorInfoThe information about the connection.
cancellationTokenCancellationTokenA cancellation token to cancel the operation.
Update(ConnectionInfo, CancellationToken)
Updates the connection information for the given connection.
public override void Update(ConnectionInfo connectionInfo, CancellationToken cancellationToken)
Parameters
connectionInfoConnectionInfoThe new connection information to be updated.
cancellationTokenCancellationTokenThe cancellation token to cancel the update operation.
Update(ExchangeInfo, CancellationToken)
Updates the exchange information.
public override bool Update(ExchangeInfo exchangeInfo, CancellationToken cancellationToken)
Parameters
exchangeInfoExchangeInfoThe exchange information to update.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- bool
Returns a value indicating whether the update was successful.
UpdateTags(IEnumerable<Tag>)
Updates the tags associated with the item.
public override void UpdateTags(IEnumerable<Tag> tags)
Parameters
tagsIEnumerable<Tag>The tags to be updated.