/// <summary>
 /// Executes the action of this command.
 /// </summary>
 /// <param name="request">The command parameters.</param>
 /// <param name="cancellationToken">Token to cancel the request.</param>
 /// <returns>A task representing an operation to get the result of this command.</returns>
 public async Task <TResult> Handle(T request, CancellationToken cancellationToken) =>
 await _executor.ExecuteIfValidAsync(request, _validator, cancellationToken).ConfigureAwait(false);
Beispiel #2
0
 /// <summary>
 /// Executes the action of this command.
 /// </summary>
 /// <param name="request">The command parameters.</param>
 /// <param name="cancellationToken">Token to cancel the request.</param>
 /// <returns>A task representing an operation to get the result of this command.</returns>
 public async Task <TResult> Handle(T request, CancellationToken cancellationToken) =>
 await executor.ExecuteIfValidAsync(request, validator, verifier, cancellationToken);