Interface IBrokerMessageIdentifier
- Namespace
- Silverback.Messaging.Broker
- Assembly
- Silverback.Integration.dll
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.
public interface IBrokerMessageIdentifier : IEquatable<IBrokerMessageIdentifier>
- Inherited Members
Methods
ToLogString()
Gets a string that can be used to log the identifier/offset value.
string ToLogString()
Returns
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.
string ToVerboseLogString()
Returns
Remarks
This string must include the endpoint name, if the identifier value isn't unique across different endpoints.