Ejemplo n.º 1
0
 /// <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();
 }
Ejemplo n.º 2
0
 public virtual AuthorizationStrategy GetAuthorizationStrategyByName(string authorizationStrategyName)
 {
     return(AuthorizationStrategies.First(
                a => a.AuthorizationStrategyName.Equals(authorizationStrategyName, StringComparison.InvariantCultureIgnoreCase)));
 }