public ActivityLogService(IMongoRepository <ActivityLog> repositoryActivityLog, IMongoRepository <LoggedModel> repositoryLoggedModel, IMongoFactory mongoFactory, IReflectionFactory reflectionFactory, IMongoRepository <LoggedCollectionModel> repositoryLoggedCollectionModel ) { _repositoryActivityLog = repositoryActivityLog; _repositoryLoggedModel = repositoryLoggedModel; _mongoFactory = mongoFactory; _reflectionFactory = reflectionFactory; _repositoryLoggedCollectionModel = repositoryLoggedCollectionModel; }
public ItemLoader( IBlizzardAuthHandler authHandler, IBlizzardItemAPI itemApiClient, IFileLoader fileLoader, IMongoFactory factory ) { _authHandler = authHandler; _itemApiClient = itemApiClient; _fileLoader = fileLoader; _factory = factory; }
/// <summary> /// Initializes a new instance of the <see cref="MongoSessionFactory"/> class. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="mongo">The mongo.</param> public MongoSessionFactory(string databaseName, IMappingStore mappingStore, IMongoFactory mongoFactory, IProxyGenerator proxyGenerator) { if (string.IsNullOrEmpty(databaseName)) throw new ArgumentException("Cannot be null or empty.", "databaseName"); if (mappingStore == null) throw new ArgumentNullException("mappingStore"); if (mongoFactory == null) throw new ArgumentNullException("mongoFactory"); if (proxyGenerator == null) throw new ArgumentNullException("proxyGenerator"); this.databaseName = databaseName; this.initialized = false; this.initializationObject = new object(); this.mappingStore = mappingStore; this.mongoFactory = mongoFactory; this.proxyGenerator = proxyGenerator; }
public WallpaperDataGridFSRepository(IMongoFactory factory) { _factory = factory; _fs = _factory.GetGridFsBucket(); }
public MovieRepository(IMongoFactory factory) : base(factory, "netflix") { }
public SessionFactory(IMongoFactory mongoFactory) { _mongoFactory = mongoFactory; }
public RepositoryBase(IMongoFactory factory, string name, string collectionName = null) { Database = factory.GetConnection(name).Databse; Collection = MongoDatabaseExtensions.GetCollection <T>(Database, collectionName); }
public MongoDataAccessProvider(IMongoFactory mongoFactory) { MongoFactory = mongoFactory; }
public LogFactory(IMongoFactory _mongoFactory) { mongoFactory = _mongoFactory; }