src/Shared/EntityFramework/Infrastructure/DefaultExecutionStrategy.cs
/// <summary>
/// Executes the specified asynchronous operation once, without retrying on failure.
/// </summary>
/// <typeparam name="TResult">
/// The result type of the <see cref="Task{T}" /> returned by <paramref name="operation" />.
/// </typeparam>
/// <param name="operation">A function that returns a started task.</param>
/// <param name="cancellationToken">
/// A cancellation token used to cancel the retry operation, but not operations that are already in flight
/// or that already completed successfully.
/// </param>
/// <returns>
/// A task that will run to completion if the original task completes successfully.
/// </returns>
Executes the specified asynchronous operation once, without retrying on failure.
Executes the specified asynchronous operation once without retrying on failure .
public Task<TResult> ExecuteAsync<TResult>(Func<Task<TResult>> operation, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();
            return operation();
        }
public Task < TResult > ExecuteAsync < TResult > ( Func < Task < TResult > > operation , CancellationToken cancellationToken ) { cancellationToken . ThrowIfCancellationRequested ( ) ; return operation ( ) ; }
Executes the specified asynchronous operation once, without retrying on failure.
Executes the specified asynchronous operation once without retrying on failure .
A task that will run to completion if the original task completes successfully.
A task that will run to completion if the original task completes successfully .
operation
Func<Task<TResult>>
A function that returns a started task.
A function that returns a started task .
cancellationToken
CancellationToken
A cancellation token used to cancel the retry operation, but not operations that are already in flight
or that already completed successfully.
A cancellation token used to cancel the retry operation but not operations that are already in flight or that already completed successfully .
typeparam
The result type of the  returned by .
The result type of the returned by .