IHostedProtocolServer

StockSharp.Server.Core

A protocol server that a module brings up and configures itself, rather than one a gate hosts on its behalf.

Implements: IProtocolServer, ILogReceiver, ILogSource, IDisposable

Properties

Address
public EndPoint Address { get; set; }
value = iHostedProtocolServer.Address
iHostedProtocolServer.Address = value

Where the server listens.

Settings
public BaseServerSettings Settings { get; }
value = iHostedProtocolServer.Settings

The settings every protocol shares. Anything protocol-specific stays on the concrete server.

Methods

HasSubscriptions
public bool HasSubscriptions(DataType dataType, SecurityId securityId)
result = iHostedProtocolServer.HasSubscriptions(dataType, securityId)

Whether any client asked for this data.

dataType
The data type.
securityId
The security.

Returns: if some session subscribed to it.

Events

StateChanged
public event Action StateChanged
iHostedProtocolServer.StateChanged += handler

Raised when State changes.