Exemple #1
0
 public void Execute(HtcHttpContext context)
 {
     foreach (var directive in _directives)
     {
         if (!context.Response.HasStarted)
         {
             directive.Execute(context);
         }
     }
 }
Exemple #2
0
        public bool MatchLocation(HtcHttpContext context)
        {
            if (_isDefault)
            {
                return(true);
            }
            switch (_modifier)
            {
            case 4:
                return(!_matchRegex.IsMatch(context.Request.Path));

            default:
                return(_matchRegex.IsMatch(context.Request.Path));
            }
        }