/// <summary> /// Handles a Log exception event raised by a sender. /// Bubbles up the event to the LogExceptionEventHandler. /// </summary> /// <param name="sender">sender of event</param> /// <param name="e">log exception event arguments</param> protected virtual void HandleLogException(object sender, LogExceptionEventArgs e) { LogExceptionEventHandler handler = this.LogException; if (handler != null) { handler(this, e); } }
/// <summary> /// Raises this object's log exception event. /// </summary> /// <param name="exc">exception</param> /// <param name="supplementMsg">supplemental message</param> protected virtual void OnLogException(Exception exc, string supplementMsg) { LogExceptionEventHandler handler = this.LogException; if (handler != null) { var args = new LogExceptionEventArgs(exc, supplementMsg); handler(this, args); } }