Skip to content
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

Feature to enable Asp.Net project wide primary constructors on all controllers? #12

Open
jbuedel opened this issue Dec 11, 2022 · 0 comments

Comments

@jbuedel
Copy link

jbuedel commented Dec 11, 2022

Would you consider a feature where all controllers in an Asp.Net project are automatically subject to having their constructor generated? So like, perhaps an assembly level [assembly: PrimaryConstructor] attribute would trigger it. Or maybe simply inclusion of an Asp.Net Mvc targeted nuget package like PrimaryConstructor.Mvc could be enough.
I think the logic could be to simply look for classes inheriting from ControllerBase instead of classes decorated with [PrimaryConstructor].

If you like the idea I would be interested in taking a crack at a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant