예제 #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");
     }
 }