Method InvokeAsync
InvokeAsync(Type, object, MessageProperties, CancellationToken, TimeSpan?)
Resolves a handler by type in a fresh DI scope and invokes it via a compiled delegate.
public Task InvokeAsync(Type handlerType, object message, MessageProperties properties, CancellationToken cancellationToken, TimeSpan? timeout = null)
Parameters
handlerTypeTypemessageobjectpropertiesMessagePropertiescancellationTokenCancellationTokentimeoutTimeSpan?