Beispiel #1
0
 public PreCalculatedDistributionStrategy(string connectionString, IProvidePageIds pageIdProvider, RequestsReader reader, IDistributionReadStrategy backend)
 {
     _connectionString = connectionString;
     _pageIdProvider   = pageIdProvider;
     _requestsReader   = reader;
     _backend          = backend;
 }
 public PreCalculatedTrendStrategy(string connectionString, RequestsReader reader, IProvidePageIds pageIdProvider, ITrendReadStrategy backend)
 {
     _reader           = reader;
     _pageIdProvider   = pageIdProvider;
     _connectionString = connectionString;
     _backend          = backend;
 }
        //readonly RequestsReader _requestsReader;

        public TrendStore(string connectionString, IProvidePageIds pageIdProvider, RequestsReader requestsReader)
        {
            _realTimeTrendStrategy      = new RealTimeTrendStrategy(connectionString, pageIdProvider);
            _preCalculatedTrendStrategy = new PreCalculatedTrendStrategy(connectionString, requestsReader, pageIdProvider, _realTimeTrendStrategy);
            _requestsReader             = requestsReader;
            //_requestsReader = requestsReader;
        }
        public AllPagesStore(string connectionString, IProvidePageIds pageIdProvider)
        {
            _connectionString = connectionString;
            _pageIdProvider   = pageIdProvider;

            _realTimeReadStrategy      = new RealTimeAllPagesReadStrategy(_connectionString, _pageIdProvider);
            _preCalculatedReadStrategy = new PreCalculatedAllPagesStrategy(_connectionString, _realTimeReadStrategy, _pageIdProvider);
            _requestsReader            = new RequestsReader(_connectionString);
        }