Table of Contents

TryInvokeAsync Method

Definition

Namespace
Savvyio.Handlers
Assemblies
Savvyio.Core.dll
Source
src/Savvyio.Core/Handlers/IFireForgetActivator.cs

TryInvokeAsync(TRequest, CancellationToken)

Invokes (if registered) the function delegate handling the specified request.

Task<ConditionalValue> TryInvokeAsync(TRequest request, CancellationToken ct = default)

Parameters

request TRequest

The model that is handled by a function delegate.

ct CancellationToken

The cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<ConditionalValue>

true if the function delegate handling the specified request was invoked, false otherwise.