Class RabbitDeliveryTag
Represents the unique message identifier assigned by the message broker.
Inheritance
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 |
---|---|---|
System.String | key | The unique key of the queue, topic or partition the message was produced to or consumed from. |
System.String | value | The identifier value. |
RabbitDeliveryTag(String, UInt64)
Initializes a new instance of the RabbitDeliveryTag class.
Declaration
public RabbitDeliveryTag(string consumerTag, ulong deliveryTag)
Parameters
Type | Name | Description |
---|---|---|
System.String | consumerTag | The consumer identifier. |
System.UInt64 | deliveryTag | The delivery (message) identifier. |
Properties
| Improve this doc View sourceConsumerTag
Gets the consumer identifier.
Declaration
public string ConsumerTag { get; }
Property Value
Type | Description |
---|---|
System.String |
DeliveryTag
Gets the delivery (message) identifier.
Declaration
public ulong DeliveryTag { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |
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 |
---|---|
System.String |
Value
Gets the identifier value.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this doc View sourceEquals(IBrokerMessageIdentifier)
Declaration
public bool Equals(IBrokerMessageIdentifier other)
Parameters
Type | Name | Description |
---|---|---|
IBrokerMessageIdentifier | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
ToLogString()
Gets a string that can be used to log the offset value.
Declaration
public string ToLogString()
Returns
Type | Description |
---|---|
System.String | A System.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 |
---|---|
System.String | A System.String representing the offset value. |
Remarks
This string must include the endpoint name, if the identifier value isn't unique across different endpoints.