Beispiel #1
0
        void HandleUnknownError(Exception exception)
        {
            DiagnosticUtility.EventLog.LogEvent(TraceEventType.Error,
                                                (ushort)EventLogCategory.ListenerAdapter,
                                                (uint)EventLogEventId.UnknownListenerAdapterError,
                                                this.ProtocolName,
                                                exception.ToString());

            if (TD.FailFastExceptionIsEnabled())
            {
                TD.FailFastException(this.EventTraceActivity, exception);
            }
            // We cannot handle this exception and thus have to terminate the process.
            DiagnosticUtility.InvokeFinalHandler(exception);
        }