public virtual bool HasAccess(AccessVerificationContext context, bool defaultAccess) { switch (CheckAccess(context)) { case AccessVerificationResult.Granted: return true; case AccessVerificationResult.Denied: return false; default: return defaultAccess; } }
public virtual bool HasAccess(AccessVerificationContext context, bool defaultAccess) { switch (CheckAccess(context)) { case AccessVerificationResult.Granted: return(true); case AccessVerificationResult.Denied: return(false); default: return(defaultAccess); } }
public override AccessVerificationResult CheckAccess(AccessVerificationContext context) { foreach (var verifierEntry in this.verifiers) { switch (verifierEntry.Right.CheckAccess(context)) { case AccessVerificationResult.Granted: return(AccessVerificationResult.Granted); case AccessVerificationResult.Denied: return(AccessVerificationResult.Denied); case AccessVerificationResult.Undefined: continue; } } if (this.inherit && this.PreviousContext != null) { return(this.PreviousContext.CheckAccess(context)); } return(AccessVerificationResult.Undefined); }
public override AccessVerificationResult CheckAccess(AccessVerificationContext context) { return(verifier(context)); }
public abstract AccessVerificationResult CheckAccess(AccessVerificationContext context);
public virtual bool HasAccess(AccessVerificationContext context) { return(HasAccess(context, true)); }
public override AccessVerificationResult CheckAccess(AccessVerificationContext context) { return verifier(context); }
public virtual bool HasAccess(AccessVerificationContext context) { return HasAccess(context, true); }
public override AccessVerificationResult CheckAccess(AccessVerificationContext context) { foreach (var verifierEntry in this.verifiers) { switch (verifierEntry.Right.CheckAccess(context)) { case AccessVerificationResult.Granted: return AccessVerificationResult.Granted; case AccessVerificationResult.Denied: return AccessVerificationResult.Denied; case AccessVerificationResult.Undefined: continue; } } if (this.inherit && this.PreviousContext != null) { return this.PreviousContext.CheckAccess(context); } return AccessVerificationResult.Undefined; }