Table of Contents

Interface IEnvelopeCloudEventBridge

Namespace
Excalibur.Dispatch.CloudEvents
Assembly
Excalibur.Dispatch.dll

Bridges Dispatch MessageEnvelope instances to transport messages using CloudEvents semantics.

public interface IEnvelopeCloudEventBridge
Extension Methods

Methods

ToTransportAsync<TTransportMessage>(MessageEnvelope, CloudEventMode, CancellationToken)

Converts a MessageEnvelope into a transport message using the specified CloudEvent mode.

Task<TTransportMessage> ToTransportAsync<TTransportMessage>(MessageEnvelope envelope, CloudEventMode mode, CancellationToken cancellationToken)

Parameters

envelope MessageEnvelope

The Dispatch message envelope to convert.

mode CloudEventMode

The CloudEvent mode to use during serialization.

cancellationToken CancellationToken

Cancellation token for the async operation.

Returns

Task<TTransportMessage>

The provider-specific transport message representation.

Type Parameters

TTransportMessage

The resulting transport message type.