static TrimHelper() { TrimApplication.TrimBinariesLoadPath = System.Configuration.ConfigurationManager.AppSettings["trimPath"]; TrimApplication.SetAsWebService(System.Configuration.ConfigurationManager.AppSettings["workPath"]); TrimApplication.Initialize(); Database.AllowAccessFromMultipleThreads = true; }
static BaseController() { TrimApplication.TrimBinariesLoadPath = ConfigurationManager.AppSettings["trimBinariesLoadPath"]; if (TrimApplication.ServiceType != ServiceTypes.WebService) { TrimApplication.SetAsWebService(ConfigurationManager.AppSettings["workPath"]); } TrimApplication.Initialize(); }