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