/// <summary> /// Writes the exception to the event log. /// </summary> /// <param name="ex"></param> public void PublishException(Exception ex) { string info = GetVerboseExceptionInfo(ex); _eventLogWriter.WriteException(info); Trace(info); if (Debugger.IsAttached) Debugger.Break(); }