public Task <bool> ProcessRequest(FlaggableFlareContext context)
        {
            if (Regex.IsMatch(context.Context.request.path + "?" + context.Context.request.query_string))
            {
                context.Flags |= Flags;
                return(Task.FromResult(true));
            }

            return(Task.FromResult(false));
        }
Example #2
0
        public async Task <bool> ProcessRequest(FlaggableFlareContext context)
        {
            foreach (var filter in baseFilters)
            {
                if (await filter.ProcessRequest(context))
                {
                    return(true);
                }
            }

            return(false);
        }