Table of Contents

Class TransportSemantics

Namespace
AnyProtocol.Protocol.Abstraction
Assembly
AnyProtocol.Protocol.Abstraction.dll

Defines the observable delivery and flow-control behavior of a messaging transport.

public sealed record TransportSemantics : IEquatable<TransportSemantics>
Inheritance
TransportSemantics
Implements
Inherited Members

Constructors

TransportSemantics()

public TransportSemantics()

Properties

DeliveryGuarantee

Gets or initializes the delivery guarantee.

public required TransportDeliveryGuarantee DeliveryGuarantee { get; init; }

Property Value

TransportDeliveryGuarantee

The delivery guarantee.

Durability

Gets or initializes the durability.

public required TransportDurability Durability { get; init; }

Property Value

TransportDurability

The durability.

Ordering

Gets or initializes the ordering.

public required TransportOrdering Ordering { get; init; }

Property Value

TransportOrdering

The ordering.

SupportsBackpressure

Gets or initializes a value indicating whether supports backpressure applies.

public bool SupportsBackpressure { get; init; }

Property Value

bool

true when supports backpressure applies; otherwise, false.

SupportsCancellation

Gets or initializes a value indicating whether supports cancellation applies.

public bool SupportsCancellation { get; init; }

Property Value

bool

true when supports cancellation applies; otherwise, false.

SupportsCompetingConsumers

Gets or initializes a value indicating whether supports competing consumers applies.

public bool SupportsCompetingConsumers { get; init; }

Property Value

bool

true when supports competing consumers applies; otherwise, false.

SupportsPartitioning

Gets or initializes a value indicating whether supports partitioning applies.

public bool SupportsPartitioning { get; init; }

Property Value

bool

true when supports partitioning applies; otherwise, false.

Methods

Equals(TransportSemantics?)

public bool Equals(TransportSemantics? other)

Parameters

other TransportSemantics

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

FromCapabilities(TransportCapabilities)

Creates conservative semantics for transports that only expose legacy capabilities.

public static TransportSemantics FromCapabilities(TransportCapabilities capabilities)

Parameters

capabilities TransportCapabilities

Returns

TransportSemantics

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TransportSemantics?, TransportSemantics?)

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

Parameters

left TransportSemantics
right TransportSemantics

Returns

bool

operator !=(TransportSemantics?, TransportSemantics?)

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

Parameters

left TransportSemantics
right TransportSemantics

Returns

bool