Interface IMongoDBClientFactory
- Namespace
- Cratis.Applications.MongoDB
- Assembly
- Cratis.Applications.MongoDB.dll
Defines a factory that is capable of creating MongoDB.Driver.IMongoClient instances.
public interface IMongoDBClientFactory
Methods
Create()
Create a new MongoDB.Driver.IMongoClient based on IMongoServerResolver.
IMongoClient Create()
Returns
- IMongoClient
A new MongoDB.Driver.IMongoClient.
Create(MongoClientSettings)
Create a new MongoDB.Driver.IMongoClient from MongoDB.Driver.MongoClientSettings.
IMongoClient Create(MongoClientSettings settings)
Parameters
settings
MongoClientSettingsMongoDB.Driver.MongoClientSettings to use.
Returns
- IMongoClient
A new MongoDB.Driver.IMongoClient.
Create(MongoUrl)
Create a new MongoDB.Driver.IMongoClient from MongoDB.Driver.MongoUrl.
IMongoClient Create(MongoUrl url)
Parameters
url
MongoUrlMongoDB.Driver.MongoUrl to use.
Returns
- IMongoClient
A new MongoDB.Driver.IMongoClient.
Create(string)
Create a new MongoDB.Driver.IMongoClient from a connection string.
IMongoClient Create(string connectionString)
Parameters
connectionString
stringConnection string to use.
Returns
- IMongoClient
A new MongoDB.Driver.IMongoClient.