ExecuteMethodAsync Method
Definition
- Assemblies
- Cuemon.Core.dll
ExecuteMethodAsync(CancellationToken)
Executes the function delegate associated with this instance.
public Task<TResult> ExecuteMethodAsync(CancellationToken ct)
Parameters
ctCancellationTokenThe token to monitor for cancellation requests. The default value is None.
Returns
- Task<TResult>
A task that represents the asynchronous operation. The task result contains the return value of the function delegate associated with this instance.
Exceptions
- InvalidOperationException
No delegate was specified on the factory.
- OperationCanceledException
The
ctwas canceled.