/// <summary> /// /// </summary> /// <param name="writer"></param> /// <param name="exception"></param> /// <param name="handlingInstanceID"></param> /// <returns></returns> protected virtual Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionFormatter CreateFormatter(StringWriter writer, Exception exception, Guid handlingInstanceID) { if (s_exceptionFormat == null) { s_exceptionFormat = (Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionFormatter) this.GetFormatterConstructor().Invoke(new object[] { writer, exception, handlingInstanceID }); } return(s_exceptionFormat); }
/// <summary> /// /// </summary> /// <param name="writer"></param> /// <param name="exception"></param> /// <param name="handlingInstanceID"></param> /// <returns></returns> protected virtual Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionFormatter CreateFormatter(StringWriter writer, Exception exception, Guid handlingInstanceID) { if (s_exceptionFormat == null) { s_exceptionFormat = (Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionFormatter)this.GetFormatterConstructor().Invoke(new object[] { writer, exception, handlingInstanceID }); } return s_exceptionFormat; }