-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Make HttpMethodActionConstraint public in Core 3.0 #8653
New issue
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
Comments
The type was If you are unable to use endpoint routing, we'd be happy to consider a PR to make the type public. |
Thanks for contacting us. We believe that the question you've raised have been answered. If you still feel a need to continue the discussion, feel free to reopen it and add your comments. |
Yes, thank you for the answer. |
Hi @pranavkm sorry for writing to a closed issue but we have a similar problem. We are using HttpMethodActionConstraint in two places of our custom IApplicationModelConvention implementation to prevent usage of http verbs for some auto generated controllers, see below lines: https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.AspNetCore/AspNetCore/Mvc/Conventions/AbpAppServiceConvention.cs#L122 I tried to change this but couldn't succeed without using HttpMethodActionConstraint. Do you think it is possible to achieve this without using HttpMethodActionConstraint ? |
We've heard enough feedback about this particular issue that we're going to make this public. |
Along with |
Fixed by: #11969 |
Is your feature request related to a problem? Please describe.
I'm making my own ApplicationModelProvider. Before Core 3.0 I used an HttpMethodActionConstraint in my ActionModels to filter out actions by http method.
In Core 3.0 HttpMethodActionConstraint was made an internal class. Why?
Example: 'm trying to do
Describe the solution you'd like
I want to use an existing reusable class
HttpMethodActionConstraint
fromMicrosoft.AspNetCore.Mvc.ActionConstraints
instead of making my own.Describe alternatives you've considered
alternative solution. Copy/Paste source of
Microsoft.AspNetCore.Mvc.ActionConstraints.HttpMethodActionConstraint
in my projectAdditional context
Custom ApplicationModelProvider is used for integration with database-provided model. I don't need an AspNetCore's class-based model, but want to use all other stuff. AppModels are great and limitation of their's building blocks is making me sad.
The text was updated successfully, but these errors were encountered: