Ejemplo n.º 1
0
 /// <summary>
 /// Ensures we are working with the expected policy type. Takes care of loading and casting lazy policies.
 /// </summary>
 internal static TSecurityPolicy EnsureNonLazyPolicyOf <TSecurityPolicy>(this ISecurityPolicy securityPolicy) where TSecurityPolicy : class, ISecurityPolicy
 {
     return(securityPolicy.EnsureNonLazyPolicy() as TSecurityPolicy);
 }