TryInvokeAsync Method
Definition
- Assemblies
- Savvyio.Core.dll
TryInvokeAsync(TRequest, CancellationToken)
Invokes (if registered) the function delegate handling the specified request.
Task<ConditionalValue> TryInvokeAsync(TRequest request, CancellationToken ct = default)
Parameters
requestTRequestThe model that is handled by a function delegate.
ctCancellationTokenThe cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<ConditionalValue>
trueif the function delegate handling the specifiedrequestwas invoked,falseotherwise.