Class DefaultMessageHeaders
- Namespace
- Silverback.Messaging.Messages
- Assembly
- Silverback.Integration.dll
Contains the constants with the names of the standard message headers used by Silverback.
public static class DefaultMessageHeaders
- Inheritance
-
DefaultMessageHeaders
- Inherited Members
Fields
ChunkIndex
The message chunk index, used when chunking is enabled.
public const string ChunkIndex = "x-chunk-index"
Field Value
ChunkMessageId
The message identifier used to uniquely identify the message each chunk belongs to.
public const string ChunkMessageId = "x-message-id"
Field Value
ChunksCount
The total number of chunks the message was split into, used when chunking is enabled.
public const string ChunksCount = "x-chunk-count"
Field Value
ContentType
The MIME type of the binary message. See IBinaryMessage.
public const string ContentType = "content-type"
Field Value
EncryptionKeyId
The encryption key identifier.
public const string EncryptionKeyId = "x-encryption-key-id"
Field Value
Remarks
The header is required for the key rotation feature. When rotating keys, it will be used on the consumer side to determine the correct key to be used to decrypt the message.
FailedAttempts
If an exception is thrown, the failed attempts will be incremented and stored as header. This is necessary for the error policies to work.
public const string FailedAttempts = "x-failed-attempts"
Field Value
FailureReason
This will be set by the MoveMessageErrorPolicy and will contain the reason why the message failed to be processed.
public const string FailureReason = "x-failure-reason"
Field Value
IsLastChunk
A boolean value indicating whether the message is the last one of a chunk sequence, used when chunking is enabled.
public const string IsLastChunk = "x-chunk-last"
Field Value
MessageType
The assembly qualified name of the message type. Used by the default JsonMessageSerializer.
public const string MessageType = "x-message-type"
Field Value
TraceBaggage
Used for distributed tracing. It corresponds to the string representation of the Activity.Baggage dictionary.
public const string TraceBaggage = "tracebaggage"
Field Value
Remarks
This is not part of the w3c standard.
TraceId
Used for distributed tracing. It is set by the IProducer using the current Activity.Id.
The IConsumer uses it's value to set the Activity.ParentId. Note that an Activity is automatically
started by the default IProducer implementation.
public const string TraceId = "traceparent"
Field Value
Remarks
The header is implemented according to the W3C Trace Context proposal (https://www.w3.org/TR/trace-context-1/#traceparent-header).
TraceState
Used for distributed tracing. It corresponds to the Activity.TraceStateString.
public const string TraceState = "tracestate"
Field Value
Remarks
The header is implemented according to the W3C Trace Context proposal (https://www.w3.org/TR/trace-context-1/#tracestate-header).