Table of Contents

Method InvokeAsync

Namespace
Ratatoskr.Core
Assembly
Ratatoskr.dll

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

handlerType Type
message object
properties MessageProperties
cancellationToken CancellationToken
timeout TimeSpan?

Returns

Task