CompareCloudware.Web/FluentSecurity/Extensions.cs
/// <summary>
/// Ensures we are working with the actual policy. Takes care of loading lazy policies.
/// </summary>
Ensures we are working with the actual policy. Takes care of loading lazy policies.
Ensures we are working with the actual policy . Takes care of loading lazy policies .
internal static ISecurityPolicy EnsureNonLazyPolicy(this ISecurityPolicy securityPolicy)
        {
            var lazySecurityPolicy = securityPolicy as ILazySecurityPolicy;
            return lazySecurityPolicy != null
                ? lazySecurityPolicy.Load()
                : securityPolicy;
        }
internal static ISecurityPolicy EnsureNonLazyPolicy ( this ISecurityPolicy securityPolicy ) { var lazySecurityPolicy = securityPolicy as ILazySecurityPolicy ; return lazySecurityPolicy != null ? lazySecurityPolicy . Load ( ) : securityPolicy ; }
Ensures we are working with the actual policy.
Ensures we are working with the actual policy .
ISecurityPolicy
this