Exemplo n.º 1
0
 public static ConnectionOptions Build(MongoDbAttribute attribute, MongoDbOptions options)
 {
     return(new ConnectionOptions(
                attribute.ConnectionStringSetting ?? options.ConnectionString,
                attribute.DatabaseName ?? options.DatabaseName,
                attribute.CollectionName ?? options.CollectionName
                ));
 }
 public MongoDbExtensionConfigProvider(IOptions <MongoDbOptions> options, IMongoDbFactory mongoDbFactory)
 {
     _options        = options.Value;
     _mongoDbFactory = mongoDbFactory;
 }