Table of Contents

Interface ISubscription<TSession>

Namespace
StockSharp.Messages
Assembly
StockSharp.Messages.dll

Describes a subscription associated with a particular message-listener session.

public interface ISubscription<TSession>

Type Parameters

TSession

The session type the subscription belongs to.

Extension Methods

Properties

Id

Unique subscription/request identifier.

long Id { get; }

Property Value

long

Responses

The set of message types that are expected/produced as responses for this subscription.

IEnumerable<MessageTypes> Responses { get; }

Property Value

IEnumerable<MessageTypes>

Session

The session in which the subscription was created.

TSession Session { get; }

Property Value

TSession

State

Current subscription state.

SubscriptionStates State { get; set; }

Property Value

SubscriptionStates

Suspend

Indicates whether data delivery for the subscription is temporarily paused.

bool Suspend { get; }

Property Value

bool

Remarks

When true, messages for this subscription are not delivered to the receiver.