예제 #1
0
        public static void Unregister(this ExceptionlessClient client)
        {
            client.Shutdown();
            client.UnregisterApplicationThreadExceptionHandler();
            client.UnregisterApplicationDispatcherUnhandledExceptionHandler();

            client.SubmittingEvent -= OnSubmittingEvent;
        }
        /// <summary>
        /// Unregisters platform specific exception handlers.
        /// </summary>
        /// <param name="client">The ExceptionlessClient.</param>
        public static void Unregister(this ExceptionlessClient client)
        {
            client.Shutdown();
            client.UnregisterApplicationThreadExceptionHandler();
            client.UnregisterApplicationDispatcherUnhandledExceptionHandler();
            client.UnregisterOnProcessExitHandler();

            client.SubmittingEvent -= OnSubmittingEvent;

            client.SubmitSessionEnd();
            client.ProcessQueue();
        }
예제 #3
0
        /// <summary>
        /// Unregisters platform specific exception handlers.
        /// </summary>
        /// <param name="client">The ExceptionlessClient.</param>
        public static void Unregister(this ExceptionlessClient client)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            client.Shutdown();
            client.UnregisterApplicationDispatcherUnhandledExceptionHandler();

            client.SubmittingEvent -= OnSubmittingEvent;
        }