Пример #1
0
        public AttributionHandler(IActivityHandler activityHandler, ActivityPackage attributionPackage, bool startPaused)
        {
            Init(activityHandler: activityHandler,
                 attributionPackage: attributionPackage,
                 startPaused: startPaused);

            _urlQuery = BuildUrlQuery();

            _timer = new TimerOnce(actionQueue: _actionQueue, action: SendAttributionRequestI);
        }
Пример #2
0
        public void Teardown()
        {
            _timer?.Teardown();
            _actionQueue?.Teardown();

            _actionQueue        = null;
            _activityHandler    = null;
            _logger             = null;
            _attributionPackage = null;
            _timer = null;
        }
Пример #3
0
        public AttributionHandler(IActivityHandler activityHandler, ActivityPackage attributionPackage, bool startPaused, bool hasDelegate)
        {
            Logger = AdjustFactory.Logger;

            InternalQueue = new ActionQueue("adjust.AttributionHandler");

            Init(activityHandler: activityHandler,
                attributionPackage: attributionPackage,
                startPaused: startPaused,
                hasDelegate: hasDelegate);

            Timer = new TimerOnce(actionQueue: InternalQueue, action: GetAttributionInternal);
        }
Пример #4
0
        public AttributionHandler(IActivityHandler activityHandler, ActivityPackage attributionPackage, bool startPaused, bool hasDelegate)
        {
            Logger = AdjustFactory.Logger;

            InternalQueue = new ActionQueue("adjust.AttributionHandler");

            Init(activityHandler: activityHandler,
                 attributionPackage: attributionPackage,
                 startPaused: startPaused,
                 hasDelegate: hasDelegate);

            Timer = new TimerOnce(actionQueue: InternalQueue, action: GetAttributionInternal);
        }