Exemple #1
0
        private static ResolveResult BuildMethodNotAllowedResult(Context context, IEnumerable <string> allowedMethods)
        {
            var route =
                new MethodNotAllowedRoute(context.Request.Path, context.Request.Method, allowedMethods);

            return(new ResolveResult(route, new DynamicDictionary()));
        }
Exemple #2
0
        private static ResolveResult BuildMethodNotAllowedResult(Context context, IEnumerable<string> allowedMethods)
        {
            var route =
                new MethodNotAllowedRoute(context.Request.Path, context.Request.Method, allowedMethods);

            return new ResolveResult(route, new DynamicDictionary());
        }