コード例 #1
0
 /// <summary>
 /// Set the formater object that will be returned by the factory
 /// </summary>
 /// <param name="formater">The formater object to return</param>
 public static void SetFormater(IExceptionOutputFormater formater)
 {
     lock (ExceptionFormaterFactory.formaterLock) {
         ExceptionFormaterFactory.defaultFormater = formater;
     }
 }
コード例 #2
0
ファイル: WrapErr.cs プロジェクト: MichaelRoop/SharedNetLibs
 /// <summary>
 /// Set the style of format for the exception string information
 /// </summary>
 /// <param name="formater">The formater to use</param>
 public static void SetExceptionFormating(IExceptionOutputFormater formater)
 {
     ExceptionFormaterFactory.SetFormater(formater);
 }
コード例 #3
0
 /// <summary>
 /// Set the formater object that will be returned by the factory
 /// </summary>
 /// <param name="formater">The formater object to return</param>
 public static void SetFormater(IExceptionOutputFormater formater)
 {
     lock (ExceptionFormaterFactory.formaterLock) {
         ExceptionFormaterFactory.defaultFormater = formater;
     }
 }