Table of Contents

Class ServerSubscription

Namespace
StockSharp.Server.Core
Assembly
StockSharp.Server.Core.dll

Server subscription.

public class ServerSubscription : SubscriptionBase<ServerSubscription>, ICloneable<ServerSubscription>, ISubscriptionMessage, ITransactionIdMessage, IOriginalTransactionIdMessage, IMessage, ILocalTimeMessage, ICloneable
Inheritance
ServerSubscription
Implements
Inherited Members
Extension Methods

Remarks

Initializes a new instance of the ServerSubscription.

Constructors

ServerSubscription(IMessageListenerSession, ISubscriptionMessage)

Server subscription.

public ServerSubscription(IMessageListenerSession session, ISubscriptionMessage subscriptionMessage)

Parameters

session IMessageListenerSession

Session.

subscriptionMessage ISubscriptionMessage

Subscription message.

Remarks

Initializes a new instance of the ServerSubscription.

Properties

BytesReceived

The number of bytes received.

public long BytesReceived { get; set; }

Property Value

long

BytesSent

The number of bytes sent.

public long BytesSent { get; set; }

Property Value

long

ErrorCount

The number of errors.

public int ErrorCount { get; set; }

Property Value

int

LastMessageTime

Last message time.

public DateTimeOffset? LastMessageTime { get; }

Property Value

DateTimeOffset?

MessagesCount

Total messages count.

public long MessagesCount { get; }

Property Value

long

Session

Session.

public IMessageListenerSession Session { get; }

Property Value

IMessageListenerSession

Methods

Clone()

Creates a new object that is a copy of the current instance.

public override ServerSubscription Clone()

Returns

ServerSubscription

A new object that is a copy of this instance.

UpdateMessageStat()

public void UpdateMessageStat()