Table of Contents

Interface IChannelSender

Namespace
Excalibur.Dispatch.Transport
Assembly
Excalibur.Dispatch.Transport.Abstractions.dll

Defines a channel sender for publishing messages.

public interface IChannelSender
Extension Methods

Methods

SendAsync<T>(T, CancellationToken)

Sends a message asynchronously through the channel.

Task SendAsync<T>(T message, CancellationToken cancellationToken)

Parameters

message T

The message to send.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task

A Task representing the result of the asynchronous operation.

Type Parameters

T

The type of message to send.