Show / Hide Table of Contents

    Class AddToSequenceResult

    Encapsulates the result of the AddAsync(IRawInboundEnvelope, ISequence?, bool) method.

    Inheritance
    object
    AddToSequenceResult
    Implements
    IEquatable<AddToSequenceResult>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Sequences
    Assembly: Silverback.Integration.dll
    Syntax
    public record AddToSequenceResult : IEquatable<AddToSequenceResult>

    Constructors

    | Improve this doc View source

    AddToSequenceResult(bool, int)

    Initializes a new instance of the AddToSequenceResult class.

    Declaration
    public AddToSequenceResult(bool isSuccess, int pushedStreamsCount)
    Parameters
    Type Name Description
    bool isSuccess

    A value indicating whether the operation was successful or not.

    int pushedStreamsCount

    The number of streams that have been actually pushed.

    Properties

    | Improve this doc View source

    Failed

    Gets a static instance representing a failed call to AddAsync(IRawInboundEnvelope, ISequence?, bool).

    Declaration
    public static AddToSequenceResult Failed { get; }
    Property Value
    Type Description
    AddToSequenceResult
    | Improve this doc View source

    IsSuccess

    Gets a value indicating whether the operation was successful or not.

    Declaration
    public bool IsSuccess { get; init; }
    Property Value
    Type Description
    bool
    | Improve this doc View source

    PushedStreamsCount

    Gets the number of streams that have been actually pushed.

    Declaration
    public int PushedStreamsCount { get; init; }
    Property Value
    Type Description
    int

    Methods

    | Improve this doc View source

    Success(int)

    Returns a new instance representing a successful call to AddAsync(IRawInboundEnvelope, ISequence?, bool).

    Declaration
    public static AddToSequenceResult Success(int pushedStreams)
    Parameters
    Type Name Description
    int pushedStreams

    The number of streams that have been actually pushed.

    Returns
    Type Description
    AddToSequenceResult

    The AddToSequenceResult.

    Implements

    IEquatable<T>
    • Improve this doc
    • View source
    In this article
    • Constructors
      • AddToSequenceResult(bool, int)
    • Properties
      • Failed
      • IsSuccess
      • PushedStreamsCount
    • Methods
      • Success(int)
    • Implements
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini