Exemple #1
0
 public static IMachineBuilder AddMongoDataAccess(this IMachineBuilder builder, IConfiguration config)
 {
     builder.Services.Configure <MongoDataAccessOptions>(config);
     return(builder.AddMongoDataAccess());
 }
Exemple #2
0
 public static IMachineBuilder AddMongoDataAccess(this IMachineBuilder builder,
                                                  Action <MongoDataAccessOptions> configureOptions)
 {
     builder.Services.Configure(configureOptions);
     return(builder.AddMongoDataAccess());
 }