常用方法
常用方法
常用方法
常用方法
/// <summary> /// Creates a new instance of the SecurityContext using the passed user instance /// and pointers to the ISecurityDataProvider, IMessageProvider and SecurityCache global objects. /// </summary> public SecurityContext(ISecurityUser currentUser) { CurrentUser = currentUser; DataProvider = _securityDataProviderPrototype.CreateNew(); Cache = _cacheHolder; }