Table of Contents

TryInvoke Method

Definition

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

TryInvoke<TResponse>(TRequest, out TResponse)

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

bool TryInvoke<TResponse>(TRequest request, out TResponse result)

Parameters

request TRequest

The model that is handled by a delegate.

result TResponse

The value returned from the request; otherwise the default value for TResponse of the result parameter.

Returns

bool

true if a delegate matching the specified request was invoked; otherwise, false.

Type Parameters

TResponse

The type of the response.