Interface IBrokerMessageIdentifier
The primary identifier used by the message broker to recognize the exact message.
It can represent a Kafka offset or other similar constructs.
If the message broker doesn't provide any message identifier, a local one can be created (e.g.
Guid.NewGuid()) and it will be used to match the message to be committed.
Inherited Members
Namespace: Silverback.Messaging.Broker
Assembly: Silverback.Integration.dll
Syntax
public interface IBrokerMessageIdentifier : IEquatable<IBrokerMessageIdentifier>
Methods
ToLogString()
Gets a string that can be used to log the identifier/offset value.
Declaration
string ToLogString()
Returns
| Type | Description |
|---|---|
| string | A string representing the identifier/offset value. |
Remarks
This string should contain all identifiers except the endpoint name.
ToVerboseLogString()
Gets a string that can be used to log the identifier/offset value.
Declaration
string ToVerboseLogString()
Returns
| Type | Description |
|---|---|
| string | A string representing the identifier/offset value. |
Remarks
This string must include the endpoint name, if the identifier value isn't unique across different endpoints.