Search Results for

    Show / Hide Table of Contents

    Class MessageGateResult<TEnd>

    The result of the SendAndAwait(TStart, Action<Message>, Int32, CancellationToken) method.

    Inheritance
    Object
    MessageGateResult<TEnd>
    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 Source

    MessageGateResult(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 Source

    EndMessage

    The end message. Can be null if the operation was not successful.

    Declaration
    public TEnd EndMessage { get; }
    Property Value
    Type Description
    TEnd
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    Result

    The result kind. Meaning if the operation was successful or not.

    Declaration
    public MessageGateResultKind Result { get; }
    Property Value
    Type Description
    MessageGateResultKind
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright Tobias Wilker and contributors