Ejemplo n.º 1
0
 // Creates a new instance of MobileCenter
 private MobileCenter()
 {
     lock (MobileCenterLock)
     {
         _applicationSettings = _applicationSettingsFactory?.CreateApplicationSettings() ?? new DefaultApplicationSettings();
         LogSerializer.AddLogType(StartServiceLog.JsonIdentifier, typeof(StartServiceLog));
         LogSerializer.AddLogType(CustomPropertiesLog.JsonIdentifier, typeof(CustomPropertiesLog));
     }
 }
 // Creates a new instance of AppCenter
 private AppCenter()
 {
     lock (AppCenterLock)
     {
         _applicationSettings = _applicationSettingsFactory?.CreateApplicationSettings() ?? new DefaultApplicationSettings();
         LogSerializer.AddLogType(StartServiceLog.JsonIdentifier, typeof(StartServiceLog));
         LogSerializer.AddLogType(CustomPropertyLog.JsonIdentifier, typeof(CustomPropertyLog));
         ApplicationLifecycleHelper.Instance.UnhandledExceptionOccurred += OnUnhandledExceptionOccurred;
     }
 }