We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now if query and route has 2 parameters with the same type, request handler will try to create arguments from request based on their type only
private async ValueTask<object[]> GetArguments(MethodInfo method, HttpListenerContext context) { var parameters = method.GetParameters(); var args = new object[parameters.Length]; for (int i = 0; i < parameters.Length; i++) { var parameterType = parameters[i].ParameterType; if (parameterType == typeof(HttpListenerContext)) { args[i] = context; } else { args[i] = null; } var content = await GetRequestContentAsync(context.Request, parameterType); if (content != default) args[i] = content; } return args; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Now if query and route has 2 parameters with the same type, request handler will try to create arguments from request based on their type only
The text was updated successfully, but these errors were encountered: