public BugsnagClient(string apiKey, bool enableMetrics = true) { if (apiKey == null) { throw new ArgumentNullException("apiKey"); } this.apiKey = apiKey; sendMetrics = enableMetrics; AutoNotify = true; // Install exception handlers interceptors = new IDisposable[] { new AppDomainInterceptor(this), new TaskSchedulerInterceptor(this), }; state = new StateCacher(new StateReporter(this)); stateTracker = new StateTracker(); exceptionConverter = new ExceptionConverter(this); notifier = new Notifier(this, MakeErrorCacheDir()); // Register observers init observer notifApplicationDidBecomeActive = NSNotificationCenter.DefaultCenter.AddObserver( UIApplication.DidBecomeActiveNotification, OnApplicationDidBecomeActive); }
public BugsnagClient(string apiKey, bool enableMetrics = true) { if (apiKey == null) throw new ArgumentNullException ("apiKey"); this.apiKey = apiKey; sendMetrics = enableMetrics; AutoNotify = true; // Install exception handlers interceptors = new IDisposable[] { new AppDomainInterceptor (this), new TaskSchedulerInterceptor (this), }; state = new StateCacher (new StateReporter (this)); stateTracker = new StateTracker (); exceptionConverter = new ExceptionConverter (this); notifier = new Notifier (this, MakeErrorCacheDir ()); // Register observers init observer notifApplicationDidBecomeActive = NSNotificationCenter.DefaultCenter.AddObserver ( UIApplication.DidBecomeActiveNotification, OnApplicationDidBecomeActive); }