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