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