IMessageListener
StockSharp.Server.Core
The interface describing a message listening component.
实现: IMessageChannel, IMessageTransport, IDisposable, ICloneable<IMessageChannel>, ICloneable, ILogReceiver, ILogSource
属性
Authorization : IAuthorization
The customer authentication.
KeepSubscriptionsOnDisconnect : bool
Keep subscriptions on disconnect.
Sessions : IEnumerable<IMessageListenerSession>
Active sessions.
方法
GetSubscriptions(IMessageListenerSession) : IEnumerable<ServerSubscription>
Get subscription for the specified session.
- session
- Session.
返回值: Subscriptions.
RemoveSubscription(ServerSubscription) : bool
Remove subscription.
- subscription
- Subscription.
返回值: if subscription was found, otherwise .
Resume(ServerSubscription)
Resume subscription.
- subscription
- Subscription.
返回值: if subscription was found, otherwise .
Suspend(ServerSubscription)
Suspend subscription.
- subscription
- Subscription.
返回值: if subscription was found, otherwise .
事件
NewOutMessage : Action<IMessageListenerSession, Message>
New message event.
SessionConnected : Action<IMessageListenerSession>
Session connected event.
SessionDisconnected : Action<IMessageListenerSession>
Session disconnected event.
SubscriptionChanged : Action<ServerSubscription>
Client subscription changed event.