Skip to content

Make HttpMethodActionConstraint public in Core 3.0 #8653

Closed
@EvilBeaver

Description

@EvilBeaver

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

var selectorModel = new SelectorModel();
selectorModel.ActionConstraints.Add(new HttpMethodActionConstraint(httpMethods));

Describe the solution you'd like

I want to use an existing reusable class HttpMethodActionConstraint from Microsoft.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 project

Additional 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.

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatestask

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions