コード例 #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 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;
            }
        }