RequestRefusal

StockSharp.Server.Core

Turns a request the server will not serve into the answer its client is waiting for.

メソッド

Create
public static Message Create(Message request, Exception error)
result = RequestRefusal.Create(request, error)

Builds the refusal for a request.

request
The request as it arrived.
error
Why it is refused.

戻り値: The answer to send back, or when the request needs none.

NeedsAnswer
public static bool NeedsAnswer(Message request)
result = RequestRefusal.NeedsAnswer(request)

Whether the request is one a client waits for an answer to.

request
The request as it arrived.

戻り値: when a refusal can be addressed to it.

フィールド

Starting
public static readonly InvalidOperationException Starting
value = RequestRefusal.Starting

Why a request is refused while the server is still starting. One instance, so a caller can recognise it by reference.