예제 #1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 static Oops()
 {
     ErrorMethods = new ConcurrentDictionary <MethodBase, MethodIfException>();
     _friendlyExceptionSettings = App.GetService <IOptions <FriendlyExceptionSettingsOptions> >().Value;
     ErrorCodeTypes             = GetErrorCodeTypes();
     ErrorCodeMessages          = GetErrorCodeMessages();
 }
예제 #2
0
파일: Oops.cs 프로젝트: MonkSoul/Furion
 /// <summary>
 /// 构造函数
 /// </summary>
 static Oops()
 {
     ErrorMethods = new ConcurrentDictionary <MethodBase, MethodIfException>();
     _friendlyExceptionSettings = App.GetConfig <FriendlyExceptionSettingsOptions>("FriendlyExceptionSettings", true);
     ErrorCodeTypes             = GetErrorCodeTypes();
     ErrorCodeMessages          = GetErrorCodeMessages();
 }