Table of Contents

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
object
EventArgs
ConnectionStateEventArgs
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

connector IDataFeedConnector

The connector whose state changed.

oldState ConnectionStates

The previous state.

newState ConnectionStates

The new state.

error Exception

The error that caused the transition, if any.

Properties

Connector

Gets the connector whose state changed.

public IDataFeedConnector Connector { get; }

Property Value

IDataFeedConnector

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

ConnectionStates

OldState

Gets the previous state.

public ConnectionStates OldState { get; }

Property Value

ConnectionStates