Beispiel #1
0
        private void BtnSendGazillionClick(object sender, RoutedEventArgs e)
        {
            Exception exception = null;

            try
            {
                RandomException();
            }
            catch (Exception oops)
            {
                exception = oops;
            }

            ET.Publish(exception);

            var etStats = ET.GetStats();

            textBlock1.Text = etStats.NumberOfExceptionsInQueue + " " + etStats.NumberOfExceptionsInSendQueue + " " +
                              etStats.NumberOfExceptionsSent;

            var etExceptions = ET.GetExceptions();

            ET.SendExceptions(etExceptions);
        }
        private void bwSend_DoWork(object sender, DoWorkEventArgs e)
        {
            var etExceptions = ET.GetExceptions();

            ET.SendExceptions(etExceptions);
        }