TryInvoke Method
Definition
- Assemblies
- Savvyio.Core.dll
TryInvoke<TResponse>(TRequest, out TResponse)
Invokes (if registered) the delegate handling the specified request.
bool TryInvoke<TResponse>(TRequest request, out TResponse result)
Parameters
requestTRequestThe model that is handled by a delegate.
resultTResponseThe value returned from the request; otherwise the default value for
TResponseof theresultparameter.
Returns
- bool
trueif a delegate matching the specifiedrequestwas invoked; otherwise,false.
Type Parameters
TResponseThe type of the response.