Table of Contents

Class SubscriptionExtensions

Namespace
StockSharp.Messages
Assembly
StockSharp.Messages.dll
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 SubscriptionStates

Current state.

newState SubscriptionStates

New state.

subscriptionId long

Subscription id.

receiver ILogReceiver

Logs.

Returns

SubscriptionStates

New state.

IsActive(SubscriptionStates)

Determines the specified state equals Active or Online.

public static bool IsActive(this SubscriptionStates state)

Parameters

state SubscriptionStates

State.

Returns

bool

Check result.

ToSubscriptionMessage(DataType)

Convert DataType to ISubscriptionMessage value.

public static ISubscriptionMessage ToSubscriptionMessage(this DataType dataType)

Parameters

dataType DataType

Data type info.

Returns

ISubscriptionMessage

Subscription message.