Esempio n. 1
0
		public StatisticsLogger(EventBroker broker, IWebContext context, Collector collector, StatisticsRepository repository)
		{
			this.broker = broker;
			this.context = context;
			this.filler = collector;
			this.repository = repository;
		}
Esempio n. 2
0
 public StatisticsLogger(EventBroker broker, IWebContext context, Collector collector, StatisticsRepository repository)
 {
     this.broker     = broker;
     this.context    = context;
     this.filler     = collector;
     this.repository = repository;
 }
		public StatisticsTransferScheduledAction(Collector filler, StatisticsRepository repository, ConfigurationManagerWrapper config)
		{
			var section = config.GetContentSection<StatisticsSection>("statistics", required: false);
			MemoryFlushInterval = section.MemoryFlushInterval;
			TransferInterval = section.TransferInterval;
			StatisticsGranularity = section.Granularity;
			this.filler = filler;
			this.repository = repository;
		}
Esempio n. 4
0
        public StatisticsTransferScheduledAction(Collector filler, StatisticsRepository repository, ConfigurationManagerWrapper config)
        {
            var section = config.GetContentSection <StatisticsSection>("statistics", required: false);

            MemoryFlushInterval   = section.MemoryFlushInterval;
            TransferInterval      = section.TransferInterval;
            StatisticsGranularity = section.Granularity;
            this.filler           = filler;
            this.repository       = repository;
        }
		public StatisticsContentHandler(StatisticsRepository repository, ConfigurationManagerWrapper config)
		{
			this.repository = repository;
			var section = config.GetContentSection<Configuration.StatisticsSection>("statistics", required: false);
			this.displayedDays = section.DisplayedDays;
			this.granularity = section.Granularity;
			this.slotSize = granularity == Granularity.Day
				? TimeSpan.FromDays(1)
				: granularity == Granularity.Hour
					? TimeSpan.FromHours(1)
					: TimeSpan.FromMinutes(1);
		}
Esempio n. 6
0
        public StatisticsContentHandler(StatisticsRepository repository, ConfigurationManagerWrapper config)
        {
            this.repository = repository;
            var section = config.GetContentSection <Configuration.StatisticsSection>("statistics", required: false);

            this.displayedDays = section.DisplayedDays;
            this.granularity   = section.Granularity;
            this.slotSize      = granularity == Granularity.Day
                                ? TimeSpan.FromDays(1)
                                : granularity == Granularity.Hour
                                        ? TimeSpan.FromHours(1)
                                        : TimeSpan.FromMinutes(1);
        }
		public PopularityChildrenSorter(StatisticsRepository statistics)
		{
			this.statistics = statistics;
			NumberOfDaysToConsider = 7;
		}
Esempio n. 8
0
 public PopularityChildrenSorter(StatisticsRepository statistics)
 {
     this.statistics        = statistics;
     NumberOfDaysToConsider = 7;
 }