コード例 #1
0
        protected override bool AuthorizeCore(System.Web.HttpContextBase httpContext)
        {
            bool?result = AuthorizationBehavior == null ? null
                : AuthorizationBehavior.OverrideAuthorize(this, httpContext);

            return(result.HasValue ? result.Value
                : base.AuthorizeCore(httpContext));
        }
コード例 #2
0
        protected override bool AuthorizeCore(System.Web.HttpContextBase httpContext)
        {
            bool?result = AuthorizationBehavior == null ? null
                : AuthorizationBehavior.OverrideAuthorize(this, httpContext);

            log.Debug("AuthorizeCore1: ", result);

            bool aux = result.HasValue ? result.Value
                : base.AuthorizeCore(httpContext);

            log.Debug("AuthorizeCore2: ", result);

            return(aux);
        }