Beispiel #1
0
 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;
 }
Beispiel #2
0
 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;
        }
Beispiel #4
0
        public WallpaperDataGridFSRepository(IMongoFactory factory)

        {
            _factory = factory;
            _fs      = _factory.GetGridFsBucket();
        }
Beispiel #5
0
 public MovieRepository(IMongoFactory factory) : base(factory, "netflix")
 {
 }
 public SessionFactory(IMongoFactory mongoFactory)
 {
     _mongoFactory = mongoFactory;
 }
Beispiel #7
0
        public RepositoryBase(IMongoFactory factory, string name, string collectionName = null)
        {
            Database = factory.GetConnection(name).Databse;

            Collection = MongoDatabaseExtensions.GetCollection <T>(Database, collectionName);
        }
Beispiel #8
0
 public MongoDataAccessProvider(IMongoFactory mongoFactory)
 {
     MongoFactory = mongoFactory;
 }
 public LogFactory(IMongoFactory _mongoFactory)
 {
     mongoFactory = _mongoFactory;
 }