コード例 #1
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 UpdateAsync(UpdateSolutionFeaturesCommand request, CancellationToken cancellationToken) =>
 await _solutionFeaturesUpdater.UpdateAsync(
     _mapper.Map(request.UpdateSolutionFeaturesViewModel,
                 await GetSolution(request, cancellationToken).ConfigureAwait(false)), cancellationToken)
 .ConfigureAwait(false);
コード例 #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 UpdateAsync(UpdateSolutionFeaturesCommand request, CancellationToken cancellationToken) =>
 await solutionFeaturesUpdater.UpdateAsync(
     mapper.Map(request.Data, await GetSolution(request, cancellationToken)),
     cancellationToken);