Exemple #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;
     }
 }
Exemple #3
0
 public Push()
 {
     _mutex = new StatefulMutex(_stateKeeper);
     LogSerializer.AddLogType(PushInstallationLog.JsonIdentifier, typeof(PushInstallationLog));
 }
 static Crashes()
 {
     LogSerializer.AddLogType(ManagedErrorLog.JsonIdentifier, typeof(ManagedErrorLog));
     LogSerializer.AddLogType(ErrorAttachmentLog.JsonIdentifier, typeof(ErrorAttachmentLog));
     LogSerializer.AddLogType(HandledErrorLog.JsonIdentifier, typeof(HandledErrorLog));
 }
Exemple #5
0
 public ChannelTest()
 {
     LogSerializer.AddLogType(TestLog.JsonIdentifier, typeof(TestLog));
 }
Exemple #6
0
 public void SetUp()
 {
     ErrorLogHelper.Instance._processInformation      = Mock.Of <IProcessInformation>();
     ErrorLogHelper.Instance._deviceInformationHelper = Mock.Of <IDeviceInformationHelper>();
     LogSerializer.AddLogType("managedError", typeof(ManagedErrorLog));
 }
 internal Analytics()
 {
     LogSerializer.AddLogType(PageLog.JsonIdentifier, typeof(PageLog));
     LogSerializer.AddLogType(EventLog.JsonIdentifier, typeof(EventLog));
     LogSerializer.AddLogType(StartSessionLog.JsonIdentifier, typeof(StartSessionLog));
 }
Exemple #8
0
 static TestLog()
 {
     LogSerializer.AddLogType(JsonIdentifier, typeof(TestLog));
 }
 public Push()
 {
     LogSerializer.AddLogType(PushInstallationLog.JsonIdentifier, typeof(PushInstallationLog));
 }
Exemple #10
0
 public void InitializeStartServiceTest()
 {
     LogSerializer.AddLogType(StartServiceLog.JsonIdentifier, typeof(StartServiceLog));
 }
Exemple #11
0
 // Creates a new instance of MobileCenter
 private MobileCenter()
 {
     _applicationSettings = new ApplicationSettings();
     LogSerializer.AddLogType(StartServiceLog.JsonIdentifier, typeof(StartServiceLog));
     LogSerializer.AddLogType(CustomPropertiesLog.JsonIdentifier, typeof(CustomPropertiesLog));
 }
Exemple #12
0
 public void InitializeStartServiceTest()
 {
     LogSerializer.AddLogType(CustomPropertyLog.JsonIdentifier, typeof(CustomPropertyLog));
 }