public BugsnagClient(Context context, string apiKey, bool enableMetrics = true)
        {
            if (context == null)
                throw new ArgumentNullException ("context");
            if (apiKey == null)
                throw new ArgumentNullException ("apiKey");

            context = context.ApplicationContext;

            this.apiKey = apiKey;
            sendMetrics = enableMetrics;
            ReleaseStage = GuessReleaseStage (context);
            AutoNotify = true;

            // Install exception handlers
            interceptors = new IDisposable[] {
                new AppDomainInterceptor (this),
                new TaskSchedulerInterceptor (this),
                new AndroidInterceptor (this),
            };

            state = new StateCacher (new StateReporter (this, context));
            activityTracker = new ActivityTracker ();
            exceptionConverter = new ExceptionConverter (this);
            notifier = new Notifier (this, MakeErrorCacheDir (context));
        }
        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);
        }
Beispiel #3
0
 public RbyForce(string rom, SpeedupFlags speedupFlags) : base(rom, null, speedupFlags)
 {
     NumSpriteSlots = IsYellow ? 15 : 16;
     StateCacher    = new StateCacher(GetType().Name);
 }
Beispiel #4
0
 public GscForce(string rom) : base(rom, (string)null)
 {
     StateCacher = new StateCacher(GetType().Name);
 }