public static ManagerBuilder AddMongoFromTypes(this ManagerBuilder builder, IComponentContext context, string database, CreationMetadata metadata, params Type[] types) { metadata[MongoDataBaseFactory.MongoDatabaseNameMeta] = database; return(builder.AddTypes(context.Resolve <MongoDataBaseFactory>(), metadata, types)); }
public static ManagerBuilder AddMongoFromTypes(this ManagerBuilder builder, IComponentContext context, string database, params Type[] types) => builder.AddTypes(context.Resolve <MongoDataBaseFactory>(), new CreationMetadata { { MongoDataBaseFactory.MongoDatabaseNameMeta, database } }, types);