Class AbpMongoClientFactory
Inheritance
AbpMongoClientFactory
Assembly: Volo.Abp.MongoDB.dll
Syntax
public class AbpMongoClientFactory : IAbpMongoClientFactory, ISingletonDependency
Constructors
AbpMongoClientFactory(IOptions<AbpMongoDbContextOptions>)
Declaration
public AbpMongoClientFactory(IOptions<AbpMongoDbContextOptions> options)
Parameters
Properties
ClientCache
Declaration
protected ConcurrentDictionary<string, MongoClient> ClientCache { get; }
Property Value
Options
Declaration
protected AbpMongoDbContextOptions Options { get; }
Property Value
Methods
Get(MongoUrl)
Declaration
public virtual MongoClient Get(MongoUrl mongoUrl)
Parameters
| Type |
Name |
Description |
| MongoUrl |
mongoUrl |
|
Returns
| Type |
Description |
| MongoClient |
|
GetAsync(MongoUrl)
Declaration
public virtual Task<MongoClient> GetAsync(MongoUrl mongoUrl)
Parameters
| Type |
Name |
Description |
| MongoUrl |
mongoUrl |
|
Returns
| Type |
Description |
| Task<MongoClient> |
|
Implements
Extension Methods