Exemple #1
0
        private static ResolveResult BuildOptionsResult(IEnumerable <string> allowedMethods, Context context)
        {
            var path = context.Request.Path;

            var optionsResult = new OptionsRoute(path, allowedMethods);

            return(new ResolveResult(optionsResult, new DynamicDictionary()));
        }
        private static ResolveResult BuildOptionsResult(IEnumerable <string> allowedMethods, Context context)
        {
            var path = context.Request.Path;

            var optionsResult = new OptionsRoute(path, allowedMethods);

            return(new ResolveResult()
            {
                Route = optionsResult,
                Parameters = new DynamicDictionary(),
                Before = null,
                After = null,
                OnError = null,
            });
        }
Exemple #3
0
        private static ResolveResult BuildOptionsResult(IEnumerable<string> allowedMethods, Context context)
        {
            var path = context.Request.Path;

            var optionsResult = new OptionsRoute(path, allowedMethods);

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