Interface IChannelSender
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
messageTThe message to send.
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
Type Parameters
TThe type of message to send.