Interface ICloudEventEncoderAdapter
- Namespace
- Excalibur.Dispatch.CloudEvents
- Assembly
- Excalibur.Dispatch.dll
Non-generic view over a registered ICloudEventEncoder<TOutbound> that lets
EnvelopeCloudEventBridge dispatch by transport-message Type without
closing an open generic at runtime (MakeGenericType(params Type[])) or using
late-bound dynamic invocation. The generic is closed once, at the registration site where the
transport-message type is statically known, so the bridge stays trimming/AOT-safe.
public interface ICloudEventEncoderAdapter
- Extension Methods
Properties
TransportMessageType
Gets the transport-message type this adapter encodes to.
Type TransportMessageType { get; }
Property Value
Methods
ToTransportAsync(CloudEvent, CloudEventMode, CancellationToken)
Serializes a CloudEvent into the adapter's transport-message representation, boxed as object for the non-generic bridge boundary.
Task<object> ToTransportAsync(CloudEvent cloudEvent, CloudEventMode mode, CancellationToken cancellationToken)
Parameters
cloudEventCloudEventmodeCloudEventModecancellationTokenCancellationToken