Class DeadLetterEnvelope
- Namespace
- AnyProtocol.Protocol.Abstraction
- Assembly
- AnyProtocol.Protocol.Abstraction.dll
Contains sanitized dead-letter metadata and an optional retained body.
public sealed record DeadLetterEnvelope : IEquatable<DeadLetterEnvelope>
- Inheritance
-
DeadLetterEnvelope
- Implements
- Inherited Members
Constructors
DeadLetterEnvelope(IReadOnlyDictionary<string, string>, ReadOnlyMemory<byte>)
Contains sanitized dead-letter metadata and an optional retained body.
public DeadLetterEnvelope(IReadOnlyDictionary<string, string> Headers, ReadOnlyMemory<byte> Body)
Parameters
HeadersIReadOnlyDictionary<string, string>BodyReadOnlyMemory<byte>
Properties
Body
public ReadOnlyMemory<byte> Body { get; init; }
Property Value
Headers
public IReadOnlyDictionary<string, string> Headers { get; init; }
Property Value
Methods
Deconstruct(out IReadOnlyDictionary<string, string>, out ReadOnlyMemory<byte>)
public void Deconstruct(out IReadOnlyDictionary<string, string> Headers, out ReadOnlyMemory<byte> Body)
Parameters
HeadersIReadOnlyDictionary<string, string>BodyReadOnlyMemory<byte>
Equals(DeadLetterEnvelope?)
public bool Equals(DeadLetterEnvelope? other)
Parameters
otherDeadLetterEnvelope
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(DeadLetterEnvelope?, DeadLetterEnvelope?)
public static bool operator ==(DeadLetterEnvelope? left, DeadLetterEnvelope? right)
Parameters
leftDeadLetterEnveloperightDeadLetterEnvelope
Returns
operator !=(DeadLetterEnvelope?, DeadLetterEnvelope?)
public static bool operator !=(DeadLetterEnvelope? left, DeadLetterEnvelope? right)
Parameters
leftDeadLetterEnveloperightDeadLetterEnvelope