Interface IHandle<T>
Defines a handler interface for processing items of type T.
public interface IHandle<in T>
Type Parameters
TThe type of item to be handled.
Methods
HandleAsync(T, MessageContext)
Handles the specified item asynchronously.
ValueTask HandleAsync(T item, MessageContext messageContext)
Parameters
itemTThe item to be handled.
messageContextMessageContext
Returns
- ValueTask
A task that represents the asynchronous operation.