Interface IMongoDbContextProvider<TMongoDbContext>
Assembly: Volo.Abp.MongoDB.dll
Syntax
public interface IMongoDbContextProvider<TMongoDbContext> where TMongoDbContext : IAbpMongoDbContext
Type Parameters
Name |
Description |
TMongoDbContext |
|
Methods
GetDbContext()
Declaration
[Obsolete("Use CreateDbContextAsync")]
TMongoDbContext GetDbContext()
Returns
Type |
Description |
TMongoDbContext |
|
GetDbContextAsync(CancellationToken)
Declaration
Task<TMongoDbContext> GetDbContextAsync(CancellationToken cancellationToken = default)
Parameters
Returns
Type |
Description |
Task<TMongoDbContext> |
|
Extension Methods