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