Interface IMessageListener
- Namespace
- StockSharp.Server.Core
- Assembly
- StockSharp.Server.Core.dll
The interface describing a message listening component.
public interface IMessageListener : IMessageChannel, ICloneable<IMessageChannel>, ICloneable, ILogReceiver, ILogSource, IDisposable
- Inherited Members
- Extension Methods
Properties
Authorization
The customer authentication.
IAuthorization Authorization { get; }
Property Value
- IAuthorization
KeepSubscriptionsOnDisconnect
Keep subscriptions on disconnect.
bool KeepSubscriptionsOnDisconnect { get; set; }
Property Value
Sessions
Active sessions.
IEnumerable<IMessageListenerSession> Sessions { get; }
Property Value
TransactionIdStorage
Transaction and request identifiers storage.
ITransactionIdStorage TransactionIdStorage { get; }
Property Value
Methods
AddSubscription(ServerSubscription)
Add subscription.
void AddSubscription(ServerSubscription subscription)
Parameters
subscription
ServerSubscriptionSubscription.
Disconnect(IMessageListenerSession)
Disconnect session.
void Disconnect(IMessageListenerSession session)
Parameters
session
IMessageListenerSessionSession.
GetSubscriptions(IMessageListenerSession)
Get subscription for the specified session.
IEnumerable<ServerSubscription> GetSubscriptions(IMessageListenerSession session)
Parameters
session
IMessageListenerSessionSession.
Returns
- IEnumerable<ServerSubscription>
Subscriptions.
RemoveSubscription(ServerSubscription)
Remove subscription.
bool RemoveSubscription(ServerSubscription subscription)
Parameters
subscription
ServerSubscriptionSubscription.
Returns
Resume(IMessageListenerSession)
Resume session.
void Resume(IMessageListenerSession session)
Parameters
session
IMessageListenerSessionSession.
Resume(ServerSubscription)
Resume subscription.
bool Resume(ServerSubscription subscription)
Parameters
subscription
ServerSubscriptionSubscription.
Returns
Suspend(IMessageListenerSession)
Suspend session.
void Suspend(IMessageListenerSession session)
Parameters
session
IMessageListenerSessionSession.
Suspend(ServerSubscription)
Suspend subscription.
bool Suspend(ServerSubscription subscription)
Parameters
subscription
ServerSubscriptionSubscription.
Returns
Events
NewOutMessage
New message event.
event Action<IMessageListenerSession, Message> NewOutMessage
Event Type
SessionConnected
Session connected event.
event Action<IMessageListenerSession> SessionConnected
Event Type
SessionDisconnected
Session disconnected event.
event Action<IMessageListenerSession> SessionDisconnected
Event Type
SubscriptionChanged
Client subscription changed event.
event Action<ServerSubscription> SubscriptionChanged