Class DefaultMongoServerResolver
- Namespace
- Cratis.Applications.MongoDB
- Assembly
- Cratis.Applications.MongoDB.dll
Represents an implementation of IMongoServerResolver that resolves a configured MongoDB.Driver.MongoUrl.
public class DefaultMongoServerResolver : IMongoServerResolver
- Inheritance
-
DefaultMongoServerResolver
- Implements
- Inherited Members
Constructors
DefaultMongoServerResolver(IOptionsMonitor<MongoDBOptions>)
Represents an implementation of IMongoServerResolver that resolves a configured MongoDB.Driver.MongoUrl.
public DefaultMongoServerResolver(IOptionsMonitor<MongoDBOptions> options)
Parameters
options
IOptionsMonitor<MongoDBOptions>
Methods
Resolve()
Resolve the MongoDB.Driver.MongoUrl for a specific server.
public MongoUrl Resolve()
Returns
- MongoUrl
The resolved MongoDB.Driver.MongoUrl.