Class MessageGateResult<TEnd>
The result of the SendAndAwait(TStart, Action<Message>, Int32, CancellationToken) method.
Namespace: Agents.Net
Assembly: Agents.Net.dll
Syntax
public class MessageGateResult<TEnd> : object where TEnd : Message
Type Parameters
Name | Description |
---|---|
TEnd | The type of the end message |
Remarks
See MessageGate<TStart, TEnd> to understand the usage of this class.
Constructors
| Improve this Doc View SourceMessageGateResult(MessageGateResultKind, TEnd, IEnumerable<ExceptionMessage>)
Instantiates the class MessageGateResult<TEnd>
Declaration
public MessageGateResult(MessageGateResultKind result, TEnd endMessage, IEnumerable<ExceptionMessage> exceptions)
Parameters
Type | Name | Description |
---|---|---|
MessageGateResultKind | result | The result kind. |
TEnd | endMessage | The end message. |
IEnumerable<ExceptionMessage> | exceptions | Exception messages. |
Properties
| Improve this Doc View SourceEndMessage
The end message. Can be null
if the operation was not successful.
Declaration
public TEnd EndMessage { get; }
Property Value
Type | Description |
---|---|
TEnd |
Exceptions
Exceptions that were logged during the execution.
Declaration
public IEnumerable<ExceptionMessage> Exceptions { get; }
Property Value
Type | Description |
---|---|
IEnumerable<ExceptionMessage> |
Remarks
The operation stops after the first exception. But it is possible that before the result is instantiated, that the gate received more exceptions.
Result
The result kind. Meaning if the operation was successful or not.
Declaration
public MessageGateResultKind Result { get; }
Property Value
Type | Description |
---|---|
MessageGateResultKind |