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; }
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; }
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; } }
static CacheDataSource() { _cache = ServiceLocator.Current.Resolve <ICache>(); _domainStats = ServiceLocator.Current.Resolve <IDomainStatisticsModule>(); }
static CacheDataSource() { _cache = ServiceLocator.Current.Resolve<ICache>(); _domainStats = ServiceLocator.Current.Resolve<IDomainStatisticsModule>(); }