Class RabbitDeliveryTag
Represents the unique message identifier assigned by the message broker.
Inherited Members
Namespace: Silverback.Messaging.Broker
Assembly: Silverback.Integration.RabbitMQ.dll
Syntax
public sealed class RabbitDeliveryTag : IBrokerMessageIdentifier, IEquatable<IBrokerMessageIdentifier>
Constructors
| Improve this doc View sourceRabbitDeliveryTag(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. |
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 sourceConsumerTag
Gets the consumer identifier.
Declaration
public string ConsumerTag { get; }
Property Value
Type | Description |
---|---|
string |
DeliveryTag
Gets the delivery (message) identifier.
Declaration
public ulong DeliveryTag { get; }
Property Value
Type | Description |
---|---|
ulong |
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 |
Value
Gets the identifier value.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Improve this doc View sourceEquals(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 |
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
| Improve this doc View sourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
| Improve this doc View sourceToLogString()
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.
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.