コード例 #1
0
 static ConfigManager()
 {
     _privilegeConfig = (PrivilegeConfig)ConfigurationManager.GetSection("privilegeConfig");
     if (_privilegeConfig == null)
     {
         _privilegeConfig          = new PrivilegeConfig();
         _privilegeConfig.Provider = (IPrivilegeContextProvider)Assembly.Load("Xinchen.PrivilegeManagement.DefaultProvider").CreateInstance("Xinchen.PrivilegeManagement.DefaultProvider.Provider.DefaultProvider");
     }
 }
コード例 #2
0
 static ConfigManager()
 {
     _privilegeConfig = (PrivilegeConfig)ConfigurationManager.GetSection("privilegeConfig");
     if (_privilegeConfig == null)
     {
         _privilegeConfig = new PrivilegeConfig();
         _privilegeConfig.Provider = (IPrivilegeContextProvider)Assembly.Load("Xinchen.PrivilegeManagement.DefaultProvider").CreateInstance("Xinchen.PrivilegeManagement.DefaultProvider.Provider.DefaultProvider");
     }
 }