Esempio n. 1
0
        public bool HandleRequest(HttpContextBase context)
        {
            if (_matcher.CanProcessRequest(context.Request))
            {
                _responseFiller.FillResponse(context.Response, context);
                return(true);
            }

            return(false);
        }
        public RequestHandlingResult HandleRequest(IRequest request)
        {
            if (_matcher.CanProcessRequest(request))
            {
                Response response = _responseFiller.FillResponse(request);
                return(new RequestHandlingResult(true, response));
            }

            return(RequestHandlingResult.NotHandled);
        }