/// <summary> /// Clears the cache, the database will be hit lazily. /// </summary> protected void Reset() { Application.Reset(); Actions.Reset(); ClaimSets.Reset(); ResourceClaims.Reset(); AuthorizationStrategies.Reset(); ClaimSetResourceClaimActions.Reset(); ResourceClaimActions.Reset(); }
public virtual AuthorizationStrategy GetAuthorizationStrategyByName(string authorizationStrategyName) { return(AuthorizationStrategies.First( a => a.AuthorizationStrategyName.Equals(authorizationStrategyName, StringComparison.InvariantCultureIgnoreCase))); }