Class ReflectionMessageHandler
Reflection-based message handler implementation
public sealed class ReflectionMessageHandler : IMessageHandler
- Inheritance
-
ReflectionMessageHandler
- Implements
- Inherited Members
Constructors
ReflectionMessageHandler(Type, MethodInfo)
public ReflectionMessageHandler(Type handlerType, MethodInfo method)
Parameters
handlerTypeTypemethodMethodInfo
Properties
MessageType
The type of message this handler processes
public Type MessageType { get; }
Property Value
Methods
HandleAsync(object, IServiceProvider, CancellationToken)
Execute the handler logic
public Task<object?> HandleAsync(object message, IServiceProvider serviceProvider, CancellationToken cancellation)
Parameters
messageobjectThe message to handle
serviceProviderIServiceProviderService provider for dependency injection
cancellationCancellationTokenCancellation token