Class ConnectionStateEventArgs
- Namespace
- ATAS.DataFeedsCore
- Assembly
- ATAS.DataFeedsCore.dll
Arguments of a change of the connection state of a connector.
public class ConnectionStateEventArgs : EventArgs
- Inheritance
-
objectEventArgsConnectionStateEventArgs
- Extension Methods
Constructors
ConnectionStateEventArgs(IDataFeedConnector, ConnectionStates, ConnectionStates, Exception?)
Initializes the arguments of a connection state change.
Not in ATAS 8.0.15 yet: available from the next version.
public ConnectionStateEventArgs(IDataFeedConnector connector, ConnectionStates oldState, ConnectionStates newState, Exception? error = null)
Parameters
connectorIDataFeedConnectorThe connector whose state changed.
oldStateConnectionStatesThe previous state.
newStateConnectionStatesThe new state.
errorExceptionThe error that caused the transition, if any.
Properties
Connector
Gets the connector whose state changed.
public IDataFeedConnector Connector { get; }
Property Value
Error
The error that caused the transition, if any (e.g. the connection loss reason on switching to Reconnecting).
Not in ATAS 8.0.15 yet: available from the next version.
public Exception? Error { get; }
Property Value
- Exception
NewState
Gets the new state.
public ConnectionStates NewState { get; }
Property Value
OldState
Gets the previous state.
public ConnectionStates OldState { get; }