예제 #1
0
        public static void RegisterWebApi(this ExceptionlessClient client, HttpConfiguration config)
        {
            client.RegisterPlugin(new ExceptionlessWebApiPlugin());
            client.Startup();
            client.Configuration.IncludePrivateInformation = true;

            ReplaceHttpErrorHandler(config);
        }
예제 #2
0
        public static void RegisterNancy(this ExceptionlessClient client, IPipelines pipelines)
        {
            client.RegisterPlugin(new ExceptionlessNancyPlugin());
            client.Startup();
            client.Configuration.IncludePrivateInformation = true;

            pipelines.OnError      += OnError;
            pipelines.AfterRequest += AfterRequest;
        }
        public static void Register(this ExceptionlessClient client, bool showDialog = true)
        {
            client.RegisterPlugin(new ExceptionlessWindowsPlugin(showDialog));
            client.Startup();

            if (showDialog)
            {
                client.UnhandledExceptionReporting -= UnhandledExceptionReporting;
                client.UnhandledExceptionReporting += UnhandledExceptionReporting;
            }

            Application.ThreadException -= OnApplicationThreadException;
            Application.ThreadException += OnApplicationThreadException;
        }
예제 #4
0
        public static void Register(this ExceptionlessClient client, bool showDialog = true)
        {
            if (client == null)
            {
                throw new ArgumentException("Exceptionless Manager cannot be null.", "client");
            }

            client.RegisterPlugin(new ExceptionlessWpfPlugin(showDialog));
            client.Startup();

            if (Application.Current == null)
            {
                return;
            }

            Application.Current.DispatcherUnhandledException -= OnDispatcherUnhandledException;
            Application.Current.DispatcherUnhandledException += OnDispatcherUnhandledException;

            System.Windows.Forms.Application.ThreadException -= OnApplicationThreadException;
            System.Windows.Forms.Application.ThreadException += OnApplicationThreadException;
        }