NServiceBus by Particular Software

<PackageReference Include="NServiceBus" Version="8.0.0" />

.NET API 1,076,224 bytes

 DistributionContext

The context for custom DistributionStrategy implementations.
public ContextBag Extensions { get; }

A ContextBag which can be used to extend the current object.

public Dictionary<string, string> Headers { get; }

The headers of the outgoing message.

The outgoing message.

public string MessageId { get; }

The id of the outgoing message.

public string[] ReceiverAddresses { get; }

The receiver addresses that can be taken into account for distribution.

public DistributionContext(string[] receiverAddresses, OutgoingLogicalMessage message, string messageId, Dictionary<string, string> headers, ITransportAddressResolver addressTranslation, ContextBag extensions)

Creates a new distribution context.

public string ToTransportAddress(EndpointInstance endpointInstance)

Converts a given logical address to the transport address.