Table of Contents

Interface IChannelReceiver

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

Defines a channel receiver for consuming messages.

public interface IChannelReceiver
Extension Methods

Methods

ReceiveAsync<T>(CancellationToken)

Receives a message asynchronously from the channel.

Task<T?> ReceiveAsync<T>(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<T>

A Task<TResult> representing the result of the asynchronous operation.

Type Parameters

T

The type of message to receive.