|  |  | 
 |  |  |             AppDomain.CurrentDomain.UnhandledException += (sender, e) => { | 
 |  |  |                 if(e.ExceptionObject is Exception exception) | 
 |  |  |                 { | 
 |  |  |                     MainPage.Log("error", "未处理的异常:" + exception.Message + "\r\nStackTrace: " + exception.StackTrace); | 
 |  |  |                     MainPage.Log("error", "未处理的异常:" + exception.Message + "StackTrace: " + exception.StackTrace); | 
 |  |  |                 } | 
 |  |  |             }; | 
 |  |  |  | 
 |  |  |             TaskScheduler.UnobservedTaskException += (sender, e) => { | 
 |  |  |                 if (e.Exception is Exception exception) | 
 |  |  |                 { | 
 |  |  |                     MainPage.Log("error", "未处理的异常:" + exception.Message + "\r\nStackTrace: " + exception.StackTrace); | 
 |  |  |                     MainPage.Log("error", "未处理的异常:" + exception.Message + "StackTrace: " + exception.StackTrace); | 
 |  |  |                 } | 
 |  |  |             }; | 
 |  |  |             #endregion | 
 |  |  | 
 |  |  |             //{ | 
 |  |  |             //    Shared.IOS.HDLFVSDK.Video.FVapplication(application, new NSDictionary()); | 
 |  |  |             //} | 
 |  |  |             Console.WriteLine("111111111111"); | 
 |  |  |             //Console.WriteLine("111111111111"); | 
 |  |  |             SetCurrentLanguage(); | 
 |  |  |             //Shared.Application.FontSize = 12; | 
 |  |  |             //Bugly.Bugly.StartWithAppId("1dc40c170a"); | 
 |  |  | 
 |  |  |                         { | 
 |  |  |                             if (pushMes.Extras.Contains("OffLine")) | 
 |  |  |                             { | 
 |  |  |                                 //haveToSignOut = true; | 
 |  |  |                                 //强制下线 | 
 |  |  |                                 UserInfo.Current.LastTime = DateTime.MinValue; | 
 |  |  |                                 UserInfo.Current.ValidToken = false; | 
 |  |  |                                 UserInfo.Current.headImagePagePath = "LoginIcon/2.png";//重置用户头像 | 
 |  |  |                                 UserInfo.Current.SaveUserInfo(); | 
 |  |  |                                 HDLCommon.Current.ShowAlert(Language.StringByID(StringId.LoggedOnOtherDevices)); |