Class HandlerInvoker
Invokes a single message handler in its own DI scope. Shared by MessageDispatcher (for non-inbox handlers) and the inbox processor (for inbox-managed handlers with per-handler retry and timeout).
public class HandlerInvoker
- Inheritance
-
HandlerInvoker
- Inherited Members
Constructors
- HandlerInvoker(IServiceScopeFactory)
Invokes a single message handler in its own DI scope. Shared by MessageDispatcher (for non-inbox handlers) and the inbox processor (for inbox-managed handlers with per-handler retry and timeout).
Methods
- InvokeAsync(Type, object, MessageProperties, CancellationToken, TimeSpan?)
Resolves a handler by type in a fresh DI scope and invokes it via a compiled delegate.