RoutingInResult

StockSharp.Algo.Basket

Result of processing an incoming message for routing.

Properties

Handled
public bool Handled { get; set; }
value = routingInResult.Handled
routingInResult.Handled = value

Whether the message was fully handled (no further processing needed).

IsPended
public bool IsPended { get; set; }
value = routingInResult.IsPended
routingInResult.IsPended = value

Whether the message was pended (waiting for connection).

LoopbackMessages
public IReadOnlyList<Message> LoopbackMessages { get; set; }
value = routingInResult.LoopbackMessages
routingInResult.LoopbackMessages = value

Messages to loop back to the basket (e.g., pending messages after connect).

OutMessages
public IReadOnlyList<Message> OutMessages { get; set; }
value = routingInResult.OutMessages
routingInResult.OutMessages = value

Messages to send to the outer handler (e.g., SubscriptionResponse, error messages).

RoutingDecisions
public IReadOnlyList<ValueTuple<IMessageAdapter, Message>> RoutingDecisions { get; set; }
value = routingInResult.RoutingDecisions
routingInResult.RoutingDecisions = value

Routing decisions: which adapter should receive which message.

Methods

CreateHandled
public static RoutingInResult CreateHandled()
result = RoutingInResult.CreateHandled()

Create a handled result with no routing (message was fully processed).

Pended
public static RoutingInResult Pended()
result = RoutingInResult.Pended()

Create a pended result (message was queued for later processing).

WithOutMessage
public static RoutingInResult WithOutMessage(Message message)
result = RoutingInResult.WithOutMessage(message)

Create a result with an output message (e.g., not supported response).

WithRouting
public static RoutingInResult WithRouting(IReadOnlyList<ValueTuple<IMessageAdapter, Message>> decisions)
result = RoutingInResult.WithRouting(decisions)

Create a result with routing decisions.

Fields

Empty
public static readonly RoutingInResult Empty
value = RoutingInResult.Empty

Empty result.