/// <summary> /// Tracks an installation /// </summary> /// <param name="version"> /// Your app version /// </param> /// <param name="appid"> /// Your app ID. You can get it at http://analytics.deskmetrics.com/ /// </param> public void TrackInstall(string version, string appid) { lock (ObjectLock) { var json = new InstallJson(version); ApplicationId = appid; _started = true; try { Services.SendData(JsonBuilder.GetJsonFromHashTable(json.GetJsonHashTable())); } catch (WebException) { // only hide unhandled exception due no internet connection } } }
/// <summary> /// Tracks an installation /// </summary> /// <param name="version"> /// Your app version /// </param> /// <param name="appid"> /// Your app ID. You can get it at http://analytics.deskmetrics.com/ /// </param> public void TrackInstall(string version, string appid) { lock (_objectLock) { string installSessionGUID = Util.GetNewSessionID(); var json = new InstallJson(installSessionGUID, version, GetFlowNumber()); try { Services.PostData(appid, JsonBuilder.GetJsonFromHashTable(json.GetJsonHashTable())); } catch (WebException) { // only hide unhandled exception due no internet connection } } }