Table of Contents

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

Headers IReadOnlyDictionary<string, string>
Body ReadOnlyMemory<byte>

Properties

Body

public ReadOnlyMemory<byte> Body { get; init; }

Property Value

ReadOnlyMemory<byte>

Headers

public IReadOnlyDictionary<string, string> Headers { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Methods

Deconstruct(out IReadOnlyDictionary<string, string>, out ReadOnlyMemory<byte>)

public void Deconstruct(out IReadOnlyDictionary<string, string> Headers, out ReadOnlyMemory<byte> Body)

Parameters

Headers IReadOnlyDictionary<string, string>
Body ReadOnlyMemory<byte>

Equals(DeadLetterEnvelope?)

public bool Equals(DeadLetterEnvelope? other)

Parameters

other DeadLetterEnvelope

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(DeadLetterEnvelope?, DeadLetterEnvelope?)

public static bool operator ==(DeadLetterEnvelope? left, DeadLetterEnvelope? right)

Parameters

left DeadLetterEnvelope
right DeadLetterEnvelope

Returns

bool

operator !=(DeadLetterEnvelope?, DeadLetterEnvelope?)

public static bool operator !=(DeadLetterEnvelope? left, DeadLetterEnvelope? right)

Parameters

left DeadLetterEnvelope
right DeadLetterEnvelope

Returns

bool