Пример #1
0
        private async Task PerformPersist(SubmitContext context, CancellationToken cancellationToken)
        {
            if (executor == null)
            {
                throw new NotSupportedException(Resources.SubmitExecutorMissing);
            }

            context.Result = await executor.ExecuteSubmitAsync(context, cancellationToken).ConfigureAwait(false);
        }
Пример #2
0
 private async Task PerformPersist(SubmitContext context, CancellationToken cancellationToken)
 {
     context.Result = await executor.ExecuteSubmitAsync(context, cancellationToken).ConfigureAwait(false);
 }