public DatabaseConfigurator(IRethinkDbConnectionProvider connectionProvider, ConnectionOptions connectionOptions)
        {
            _connectionProvider = connectionProvider;
            _connectionOptions  = connectionOptions;

            _connection = _connectionProvider.GetConnection(_connectionOptions) as Connection;
        }
Пример #2
0
 public ReGridStorageProvider(IRethinkDbConnectionProvider connectionProvider, ConnectionOptions connectionOptions)
 {
     _connectionOptions = connectionOptions;
     _connection        = connectionProvider.GetConnection(_connectionOptions);
     _bucket            = new Bucket(_connection, _connectionOptions.DBName, "fs");
     _bucket.Mount();
 }
Пример #3
0
 public RethinkDbRepository(IRethinkDbConnectionProvider connectionProvider,
                            ConnectionOptions connectionOptions,
                            IQueryTemplateFinder queryTemplateProvider)
 {
     _connectionOptions     = connectionOptions;
     _connection            = connectionProvider.GetConnection(_connectionOptions);
     _queryTemplateProvider = queryTemplateProvider;
 }