IProtocolServer

StockSharp.Server.Core

Common interface for protocol servers (FIX, SBE, etc.). Provides unified API for running the server and routing messages.

Implementa: ILogReceiver, ILogSource, IDisposable

Propriedades

Sessions : IEnumerable<IMessageListenerSession>

Snapshot of all client sessions currently held by the server. Useful for tests that need to verify server-side session bookkeeping independently of what the client adapter happens to see (a FIX adapter, for example, silently auto-reconnects after a server-side kick, so the client-side DisconnectMessage is not a reliable signal).

State : ChannelStates

Current server state.

Métodos

RunAsync(CancellationToken) : IAsyncEnumerable<ValueTuple<IMessageListenerSession, Message>>

Run the server and yield incoming messages from connected clients.

SendInMessage(Message) : bool

Send a message from the server module to connected clients.

SendInMessage(IMessageListenerSession, Message) : bool

Send a message to a specific client session. Default implementation ignores session and broadcasts.