예제 #1
0
        public MatchResult MatchesRequest(HttpRequestBase request)
        {
            request.ThrowIfNull("request");

            return(_comparer.Matches(_query, request.UrlReferrer.Query) ? MatchResult.RestrictionMatched(this.ToEnumerable()) : MatchResult.RestrictionNotMatched(Enumerable.Empty <IRestriction>(), this.ToEnumerable()));
        }
        public MatchResult MatchesRequest(HttpRequestBase request)
        {
            request.ThrowIfNull("request");

            return(String.Equals(_authority, request.Url.Authority) ? MatchResult.RestrictionMatched(this.ToEnumerable()) : MatchResult.RestrictionNotMatched(Enumerable.Empty <IRestriction>(), this.ToEnumerable()));
        }
        public MatchResult MatchesRequest(HttpRequestBase request)
        {
            request.ThrowIfNull("request");

            return(_type == request.Url.HostNameType ? MatchResult.RestrictionMatched(this.ToEnumerable()) : MatchResult.RestrictionNotMatched(Enumerable.Empty <IRestriction>(), this.ToEnumerable()));
        }
예제 #4
0
        public MatchResult MatchesRequest(HttpRequestBase request)
        {
            request.ThrowIfNull("request");

            return(_matchDelegate(request.UrlReferrer) ? MatchResult.RestrictionMatched(this.ToEnumerable()) : MatchResult.RestrictionNotMatched(Enumerable.Empty <IRestriction>(), this.ToEnumerable()));
        }
예제 #5
0
        public MatchResult MatchesRequest(HttpRequestBase request)
        {
            request.ThrowIfNull("request");

            return(request.Headers.AllKeys.All(arg => arg != _field) ? MatchResult.RestrictionMatched(this.ToEnumerable()) : MatchResult.RestrictionNotMatched(Enumerable.Empty <IRestriction>(), this.ToEnumerable()));
        }
        public MatchResult MatchesRequest(HttpRequestBase request)
        {
            request.ThrowIfNull("request");

            return(_comparer.Matches(_relativePath, GetRelativeUrl(request)) ? MatchResult.RestrictionMatched(this.ToEnumerable()) : MatchResult.RestrictionNotMatched(Enumerable.Empty <IRestriction>(), this.ToEnumerable()));
        }