public void CheckForUpdates(bool isAutoCheck = false) { // Mark if request is auto or manual check m_isAutomaticCheck = isAutoCheck; string _productName = GetGlobalIdentificationForThisProduct(); string _productDetailsPath = string.Format(kProductDetailsPathFormat, _productName); URL _URL = URL.URLWithString(kServerBaseAddress, _productDetailsPath); // Start asynchronous request GETRequest _request = GETRequest.CreateAsyncRequest(_URL, null); _request.OnSuccess = RequestForUpdatesSuccess; _request.OnFailure = RequestForUpdatesFailed; // Start request _request.StartRequest(); // Cache request m_updateGETRequest = _request; }
public void CheckForUpdates() { if (m_updateGETRequest != null) { return; } string _productName = GetGlobalIdentificationForThisProduct(); string _productDetailsPath = string.Format(kProductDetailsPathFormat, _productName); URL _URL = URL.URLWithString(kServerBaseAddress, _productDetailsPath); // Start asynchronous request GETRequest _request = GETRequest.CreateAsyncRequest(_URL, null); _request.OnSuccess = RequestForUpdatesSuccess; _request.OnFailure = RequestForUpdatesFailed; _request.StartRequest(); // Cache request m_updateGETRequest = _request; }