Esempio n. 1
0
        private void BuildImpressionManager()
        {
            var impressionsHasher   = new ImpressionHasher();
            var impressionsObserver = new ImpressionsObserver(impressionsHasher);

            _impressionsCounter = new ImpressionsCounter();
            _impressionsManager = new ImpressionsManager(_impressionsLog, _customerImpressionListener, _impressionsCounter, true, _config.ImpressionsMode, _telemetryRuntimeProducer, _tasksManager, impressionsObserver);
        }
 public ImpressionsCountSender(ITreatmentSdkApiClient apiClient,
                               IImpressionsCounter impressionsCounter,
                               int?interval = null)
 {
     _apiClient               = apiClient;
     _impressionsCounter      = impressionsCounter;
     _cancellationTokenSource = new CancellationTokenSource();
     _interval = interval ?? CounterRefreshRateSeconds;
     _running  = false;
 }
Esempio n. 3
0
 public ImpressionsManager(IImpressionsLog impressionsLog,
                           IImpressionListener customerImpressionListener,
                           IImpressionsCounter impressionsCounter,
                           bool addPreviousTime,
                           ImpressionsMode impressionsMode,
                           IImpressionsObserver impressionsObserver = null)
 {
     _impressionsLog             = impressionsLog;
     _customerImpressionListener = customerImpressionListener;
     _impressionsCounter         = impressionsCounter;
     _addPreviousTime            = addPreviousTime;
     _optimized           = impressionsMode == ImpressionsMode.Optimized && addPreviousTime;
     _impressionsObserver = impressionsObserver;
 }
Esempio n. 4
0
 public ImpressionsManager(IImpressionsLog impressionsLog,
                           IImpressionListener customerImpressionListener,
                           IImpressionsCounter impressionsCounter,
                           bool addPreviousTime,
                           ImpressionsMode impressionsMode,
                           ITelemetryRuntimeProducer telemetryRuntimeProducer,
                           ITasksManager taskManager,
                           IImpressionsObserver impressionsObserver = null)
 {
     _impressionsLog             = impressionsLog;
     _customerImpressionListener = customerImpressionListener;
     _impressionsCounter         = impressionsCounter;
     _addPreviousTime            = addPreviousTime;
     _optimized                = impressionsMode == ImpressionsMode.Optimized && addPreviousTime;
     _impressionsObserver      = impressionsObserver;
     _telemetryRuntimeProducer = telemetryRuntimeProducer;
     _taskManager              = taskManager;
 }