コード例 #1
0
        static TrimHelper()
        {
            TrimApplication.TrimBinariesLoadPath = System.Configuration.ConfigurationManager.AppSettings["trimPath"];
            TrimApplication.SetAsWebService(System.Configuration.ConfigurationManager.AppSettings["workPath"]);
            TrimApplication.Initialize();

            Database.AllowAccessFromMultipleThreads = true;
        }
コード例 #2
0
        static BaseController()
        {
            TrimApplication.TrimBinariesLoadPath = ConfigurationManager.AppSettings["trimBinariesLoadPath"];

            if (TrimApplication.ServiceType != ServiceTypes.WebService)
            {
                TrimApplication.SetAsWebService(ConfigurationManager.AppSettings["workPath"]);
            }

            TrimApplication.Initialize();
        }