IHostedProtocolServer
StockSharp.Server.Core
A protocol server that a module brings up and configures itself, rather than one a gate hosts on its behalf.
実装: IProtocolServer, ILogReceiver, ILogSource, IDisposable
プロパティ
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.
メソッド
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.
戻り値: if some session subscribed to it.
イベント
StateChanged
public event Action StateChanged
iHostedProtocolServer.StateChanged += handler
Raised when State changes.