예제 #1
0
        static StreamInsightRequestModule()
        {
            _streamInsightCore  = ServiceLocator.Current.Resolve <QueriesCore>();
            _domainStatistics   = ServiceLocator.Current.Resolve <IDomainStatisticsModule>();
            _requestsRepository = ServiceLocator.Current.Resolve <IRequestRepository>();
            _config             = ServiceLocator.Current.Resolve <IConfigurationModule>();

            _streamInsightCore.RegisterCounting();

            _streamInsightCore.DomainStatisticsOutputService.Next += DomainStatisticsHandler;
        }
예제 #2
0
        static StreamInsightRequestModule()
        {
            _streamInsightCore = ServiceLocator.Current.Resolve<QueriesCore>();
            _domainStatistics = ServiceLocator.Current.Resolve<IDomainStatisticsModule>();
            _requestsRepository = ServiceLocator.Current.Resolve<IRequestRepository>();
            _config = ServiceLocator.Current.Resolve<IConfigurationModule>();

            _streamInsightCore.RegisterCounting();

            _streamInsightCore.DomainStatisticsOutputService.Next += DomainStatisticsHandler;
        }
예제 #3
0
        static RawGatheringRequestModule()
        {
            _config           = ServiceLocator.Current.Resolve <IConfigurationModule>();
            _statisticsModule = ServiceLocator.Current.Resolve <IDomainStatisticsModule>();

            _handlers = Enumerable.Range(0, Environment.ProcessorCount * 2).Select(i => new GatheringRequestThread(i)).ToArray();

            _requestSlots     = Enumerable.Range(1, 5).Select(i => new GatheringRequestSlot(_handlers.Length)).ToArray();
            _currentSlotIndex = 0;
            _currentSlot      = _requestSlots[_currentSlotIndex];
            _timeLine         = DateTime.Now.AddSeconds(_config.CoreDelay / 5.0);
            _statsTimer       = new Timer(CountStats, null, 0, 100);
        }
        static StreamInsightRequestGatheringModule()
        {
            _streamInsightCore  = ServiceLocator.Current.Resolve <QueriesCore>();
            _domainStatistics   = ServiceLocator.Current.Resolve <IDomainStatisticsModule>();
            _requestsRepository = ServiceLocator.Current.Resolve <IRequestRepository>();
            _config             = ServiceLocator.Current.Resolve <IConfigurationModule>();

            _streamInsightCore.RegisterGathering();

            _streamInsightCore.EventsOutputService.Next += DomainRequestsHandler;
            if (_config.SaveRequestsToDb)
            {
                _streamInsightCore.EventsOutputService.Next += StatInput;
            }
        }
        static StreamInsightRequestGatheringModule()
        {
            _streamInsightCore = ServiceLocator.Current.Resolve<QueriesCore>();
            _domainStatistics = ServiceLocator.Current.Resolve<IDomainStatisticsModule>();
            _requestsRepository = ServiceLocator.Current.Resolve<IRequestRepository>();
            _config = ServiceLocator.Current.Resolve<IConfigurationModule>();

            _streamInsightCore.RegisterGathering();

            _streamInsightCore.EventsOutputService.Next += DomainRequestsHandler;
            if (_config.SaveRequestsToDb)
            {
                _streamInsightCore.EventsOutputService.Next += StatInput;
            }
        }
예제 #6
0
 static CacheDataSource()
 {
     _cache       = ServiceLocator.Current.Resolve <ICache>();
     _domainStats = ServiceLocator.Current.Resolve <IDomainStatisticsModule>();
 }
예제 #7
0
 static CacheDataSource()
 {
     _cache = ServiceLocator.Current.Resolve<ICache>();
     _domainStats = ServiceLocator.Current.Resolve<IDomainStatisticsModule>();
 }