public static void Startup(IPlatform pf) { WebClient webClient = new WebClient(); try { String serverConfigString = webClient.DownloadString(serverConfigUrl); serverConfigedParams = JsonConvert.DeserializeObject <ServerConfigedParams>(serverConfigString); AnalyticsManager.ConfigureAnalyticsClient(serverConfigedParams.analyticsUrl); } catch (System.Net.WebException e) { Console.WriteLine("Exception caught: {0}", e); } catch (ArgumentNullException e) { Console.WriteLine("Exception caught: {0}", e); } platform = pf; appParams.OS = platform.GetOS(); appParams.device = platform.GetDevice(); appParams.userId = platform.GetUserId(); appParams.location = platform.GetLocation(); appParams.startTime = UtilityMethods.GetCurrentTimeStamp(); AnalyticsManager.Push(appParams, AnalyticsManager.TYPE.APP_START, AnalyticsManager.PRIORITY.HIGH); }