Method CreateDbContextAsync
CreateDbContextAsync(CancellationToken)
Asynchronously creates a new instance of the database context.
Task<TContext> CreateDbContextAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<TContext>
A task that represents the asynchronous operation. The task result contains the created database context.