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, }); }
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()); }