Class ServerSubscription
- Namespace
- StockSharp.Server.Core
- Assembly
- StockSharp.Server.Core.dll
Server subscription.
public class ServerSubscription : SubscriptionBase
- Inheritance
-
ServerSubscription
- Inherited Members
- Extension Methods
Constructors
ServerSubscription(IMessageListenerSession, ISubscriptionMessage, SecurityMessage)
Initializes a new instance of the ServerSubscription.
public ServerSubscription(IMessageListenerSession session, ISubscriptionMessage subscriptionMessage, SecurityMessage security)
Parameters
session
IMessageListenerSessionSession.
subscriptionMessage
ISubscriptionMessageSubscription message.
security
SecurityMessageSecurity.
Properties
BytesReceived
The number of bytes received.
public long BytesReceived { get; set; }
Property Value
BytesSent
The number of bytes sent.
public long BytesSent { get; set; }
Property Value
ErrorCount
The number of errors.
public int ErrorCount { get; set; }
Property Value
LastMessageTime
Last message time.
public DateTimeOffset? LastMessageTime { get; }
Property Value
MessagesCount
Total messages count.
public long MessagesCount { get; }
Property Value
Session
Session.
public IMessageListenerSession Session { get; }
Property Value
Methods
UpdateMessageStat()
Update MessagesCount and LastMessageTime.
public void UpdateMessageStat()