Table of Contents

Interface IFireForgetActivator<TRequest>

Namespace
Savvyio.Handlers
Assembly
Savvyio.Core.dll

Specifies a way of invoking Fire-and-Forget/In-Only MEP delegates that handles TRequest.

public interface IFireForgetActivator<in TRequest>

Type Parameters

TRequest

The type of the model to invoke on a handler.

Methods

TryInvoke(TRequest)

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

bool TryInvoke(TRequest request)

Parameters

request TRequest

The model that is handled by a delegate.

Returns

Boolean

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

TryInvokeAsync(TRequest, CancellationToken)

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

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

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.

See Also