CompareCloudware.Web/FluentSecurity/Extensions.cs
/// <summary>
/// Gets the actual type of the ISecurityPolicy. Takes care of checking for lazy policies.
/// </summary>
Gets the actual type of the ISecurityPolicy. Takes care of checking for lazy policies.
Gets the actual type of the ISecurityPolicy . Takes care of checking for lazy policies .
public static Type GetPolicyType(this ISecurityPolicy securityPolicy)
        {
            var lazySecurityPolicy = securityPolicy as ILazySecurityPolicy;
            return lazySecurityPolicy != null
                ? lazySecurityPolicy.PolicyType
                : securityPolicy.GetType();
        }
public static Type GetPolicyType ( this ISecurityPolicy securityPolicy ) { var lazySecurityPolicy = securityPolicy as ILazySecurityPolicy ; return lazySecurityPolicy != null ? lazySecurityPolicy . PolicyType : securityPolicy . GetType ( ) ; }
Gets the actual type of the ISecurityPolicy.
Gets the actual type of the ISecurityPolicy .
ISecurityPolicy
this