src/Shared/EntityFramework/Infrastructure/Interception/DbInterceptionContext.cs
/// <summary>
/// Creates a new <see cref="DbInterceptionContext" /> that contains all the contextual information in this
/// interception context the <see cref="DbInterceptionContext.IsAsync" /> flag set to true.
/// </summary>
/// <returns>A new interception context associated with the async flag set.</returns>
Creates a new  that contains all the contextual information in this
interception context the  flag set to true.
Creates a new that contains all the contextual information in this interception context the flag set to true .
public DbInterceptionContext AsAsync()
        {
            var copy = Clone();
            copy._isAsync = true;
            return copy;
        }
public DbInterceptionContext AsAsync ( ) { var copy = Clone ( ) ; copy . _isAsync = true ; return copy ; }
Creates a new  that contains all the contextual information in this
interception context the  flag set to true.
Creates a new that contains all the contextual information in this interception context the flag set to true .
A new interception context associated with the async flag set.
A new interception context associated with the async flag set .