Exemple #1
0
        public static async Task <bool> RefreshStartupAsync()
        {
            StartupResponse startupAsync = await LiteClient.GetStartupAsync();

            if (startupAsync == null)
            {
                return(Config.Global.ReportUrl != null);
            }
            if (startupAsync.DeviceId != null)
            {
                Critical.SetDeviceId(startupAsync.DeviceId);
            }
            if (startupAsync.Uuid != null)
            {
                Critical.SetUuid(startupAsync.Uuid);
            }
            Config.Global.ReportUrl = startupAsync.ReportUrl;
            return(true);
        }