Table of Contents

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

bool

Sessions

Active sessions.

IEnumerable<IMessageListenerSession> Sessions { get; }

Property Value

IEnumerable<IMessageListenerSession>

TransactionIdStorage

Transaction and request identifiers storage.

ITransactionIdStorage TransactionIdStorage { get; }

Property Value

ITransactionIdStorage

Methods

AddSubscription(ServerSubscription)

Add subscription.

void AddSubscription(ServerSubscription subscription)

Parameters

subscription ServerSubscription

Subscription.

Disconnect(IMessageListenerSession)

Disconnect session.

void Disconnect(IMessageListenerSession session)

Parameters

session IMessageListenerSession

Session.

GetSubscriptions(IMessageListenerSession)

Get subscription for the specified session.

IEnumerable<ServerSubscription> GetSubscriptions(IMessageListenerSession session)

Parameters

session IMessageListenerSession

Session.

Returns

IEnumerable<ServerSubscription>

Subscriptions.

RemoveSubscription(ServerSubscription)

Remove subscription.

bool RemoveSubscription(ServerSubscription subscription)

Parameters

subscription ServerSubscription

Subscription.

Returns

bool

true if subscription was found, otherwise false.

Resume(IMessageListenerSession)

Resume session.

void Resume(IMessageListenerSession session)

Parameters

session IMessageListenerSession

Session.

Resume(ServerSubscription)

Resume subscription.

bool Resume(ServerSubscription subscription)

Parameters

subscription ServerSubscription

Subscription.

Returns

bool

true if subscription was found, otherwise false.

Suspend(IMessageListenerSession)

Suspend session.

void Suspend(IMessageListenerSession session)

Parameters

session IMessageListenerSession

Session.

Suspend(ServerSubscription)

Suspend subscription.

bool Suspend(ServerSubscription subscription)

Parameters

subscription ServerSubscription

Subscription.

Returns

bool

true if subscription was found, otherwise false.

Events

NewOutMessage

New message event.

event Action<IMessageListenerSession, Message> NewOutMessage

Event Type

Action<IMessageListenerSession, Message>

SessionConnected

Session connected event.

event Action<IMessageListenerSession> SessionConnected

Event Type

Action<IMessageListenerSession>

SessionDisconnected

Session disconnected event.

event Action<IMessageListenerSession> SessionDisconnected

Event Type

Action<IMessageListenerSession>

SubscriptionChanged

Client subscription changed event.

event Action<ServerSubscription> SubscriptionChanged

Event Type

Action<ServerSubscription>