Show / Hide Table of Contents

    Class RabbitDeliveryTag

    Represents the unique message identifier assigned by the message broker.

    Inheritance
    object
    RabbitDeliveryTag
    Implements
    IBrokerMessageIdentifier
    IEquatable<IBrokerMessageIdentifier>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Broker
    Assembly: Silverback.Integration.RabbitMQ.dll
    Syntax
    public sealed class RabbitDeliveryTag : IBrokerMessageIdentifier, IEquatable<IBrokerMessageIdentifier>

    Constructors

    | Improve this doc View source

    RabbitDeliveryTag(string, string)

    Initializes a new instance of the RabbitDeliveryTag class.

    Declaration
    public RabbitDeliveryTag(string key, string value)
    Parameters
    Type Name Description
    string key

    The unique key of the queue, topic or partition the message was produced to or consumed from.

    string value

    The identifier value.

    | Improve this doc View source

    RabbitDeliveryTag(string, ulong)

    Initializes a new instance of the RabbitDeliveryTag class.

    Declaration
    public RabbitDeliveryTag(string consumerTag, ulong deliveryTag)
    Parameters
    Type Name Description
    string consumerTag

    The consumer identifier.

    ulong deliveryTag

    The delivery (message) identifier.

    Properties

    | Improve this doc View source

    ConsumerTag

    Gets the consumer identifier.

    Declaration
    public string ConsumerTag { get; }
    Property Value
    Type Description
    string
    | Improve this doc View source

    DeliveryTag

    Gets the delivery (message) identifier.

    Declaration
    public ulong DeliveryTag { get; }
    Property Value
    Type Description
    ulong
    | Improve this doc View source

    Key

    Gets the unique key of the queue, topic or partition the message was produced to or consumed from.

    Declaration
    public string Key { get; }
    Property Value
    Type Description
    string
    | Improve this doc View source

    Value

    Gets the identifier value.

    Declaration
    public string Value { get; }
    Property Value
    Type Description
    string

    Methods

    | Improve this doc View source

    Equals(IBrokerMessageIdentifier?)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(IBrokerMessageIdentifier? other)
    Parameters
    Type Name Description
    IBrokerMessageIdentifier other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    | Improve this doc View source

    Equals(object?)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)
    | Improve this doc View source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()
    | Improve this doc View source

    ToLogString()

    Gets a string that can be used to log the offset value.

    Declaration
    public string ToLogString()
    Returns
    Type Description
    string

    A string representing the offset value.

    Remarks

    This string should contain all identifiers except the endpoint name.

    | Improve this doc View source

    ToVerboseLogString()

    Gets a string that can be used to log the offset value.

    Declaration
    public string ToVerboseLogString()
    Returns
    Type Description
    string

    A string representing the offset value.

    Remarks

    This string must include the endpoint name, if the identifier value isn't unique across different endpoints.

    Implements

    IBrokerMessageIdentifier
    IEquatable<T>
    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini