Interface IMessageHandler
Interface for generated/compiled message handlers
public interface IMessageHandler
Properties
MessageType
The type of message this handler processes
Type MessageType { get; }
Property Value
Methods
HandleAsync(object, IServiceProvider, CancellationToken)
Execute the handler logic
Task<object?> HandleAsync(object message, IServiceProvider serviceProvider, CancellationToken cancellation)
Parameters
messageobjectThe message to handle
serviceProviderIServiceProviderService provider for dependency injection
cancellationCancellationTokenCancellation token