Esempio n. 1
0
        public ExceptionConverter(BugsnagClient client)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }

            this.client = client;
        }
        public StateReporter(BugsnagClient client, Context ctx)
        {
            if (client == null)
                throw new ArgumentNullException ("client");
            if (ctx == null)
                throw new ArgumentNullException ("ctx");

            this.client = client;
            this.ctx = ctx;
        }
Esempio n. 3
0
        public StateReporter(BugsnagClient client, Context ctx)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }
            if (ctx == null)
            {
                throw new ArgumentNullException("ctx");
            }

            this.client = client;
            this.ctx    = ctx;
        }
Esempio n. 4
0
        public Notifier(BugsnagClient client, string cacheDir)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }
            if (cacheDir == null)
            {
                throw new ArgumentNullException("cacheDir");
            }

            this.client   = client;
            this.cacheDir = cacheDir;
        }
        public override void OnCreate()
        {
            base.OnCreate ();

            if (bugsnagClient == null) {
                // create new BugsnagClient which will monitor for errors and send them to the server
                bugsnagClient = new BugsnagClient (this, "MY-BUGSNAG-APIKEY-HERE") {
                    DeviceId = GetInstalId (),
                    ProjectNamespaces = new List<string> () { "Sample." },
                    // By default Android library can guess the release stage between "production" and "development"
                    // ReleaseStage = "development",
                };
            }

            // You can associate errors with a specific user, if you want
            bugsnagClient.SetUser ("1234", "*****@*****.**", "John Doe");
        }