RequestRefusal
StockSharp.Server.Core
Turns a request the server will not serve into the answer its client is waiting for.
Métodos
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.
Devuelve: 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.
Devuelve: when a refusal can be addressed to it.
Campos
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.