Class SubscriptionExtensions
- Namespace
- StockSharp.Messages
- Assembly
- StockSharp.Messages.dll
ISubscriptionMessage extensions.
public static class SubscriptionExtensions
- Inheritance
-
SubscriptionExtensions
- Inherited Members
Methods
ChangeSubscriptionState(SubscriptionStates, SubscriptionStates, long, ILogReceiver)
Change subscription state.
public static SubscriptionStates ChangeSubscriptionState(this SubscriptionStates currState, SubscriptionStates newState, long subscriptionId, ILogReceiver receiver)
Parameters
currState
SubscriptionStatesCurrent state.
newState
SubscriptionStatesNew state.
subscriptionId
longSubscription id.
receiver
ILogReceiverLogs.
Returns
- SubscriptionStates
New state.
IsActive(SubscriptionStates)
public static bool IsActive(this SubscriptionStates state)
Parameters
state
SubscriptionStatesState.
Returns
- bool
Check result.
ToSubscriptionMessage(DataType)
Convert DataType to ISubscriptionMessage value.
public static ISubscriptionMessage ToSubscriptionMessage(this DataType dataType)
Parameters
dataType
DataTypeData type info.
Returns
- ISubscriptionMessage
Subscription message.