StartIn() private method

private StartIn ( int milliSecondsDelay ) : void
milliSecondsDelay int
return void
Beispiel #1
0
        private void GetAttributionI(TimeSpan askIn, bool isInitializedBySdk)
        {
            // don't reset if new time is shorter than the last one
            if (_timer.FireIn > askIn)
            {
                return;
            }

            if (isInitializedBySdk)
            {
                _attributionPackage.Parameters.AddSafe(INITIATED_BY, "sdk");
            }
            else
            {
                _attributionPackage.Parameters.AddSafe(INITIATED_BY, "backend");
            }

            // recreate GET paramteres to include "initiated_by" parameter
            _urlQuery = BuildUrlQuery();

            if (askIn.Milliseconds > 0)
            {
                _logger.Debug("Waiting to query attribution in {0} milliseconds", askIn.Milliseconds);
            }

            // set the new time the timer will fire in
            _timer.StartIn(askIn);
        }
Beispiel #2
0
        private void GetAttributionI(TimeSpan askIn)
        {
            // don't reset if new time is shorter than the last one
            if (_timer.FireIn > askIn)
            {
                return;
            }

            if (askIn.Milliseconds > 0)
            {
                _logger.Debug("Waiting to query attribution in {0} milliseconds", askIn.Milliseconds);
            }

            // set the new time the timer will fire in
            _timer.StartIn(askIn);
        }