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 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;
            }
        }