CarterCommunity / Carter

Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and most importantly more enjoyable.
MIT License
2.05k stars 172 forks source link

Support nested modules #342

Closed OnkelMato closed 1 month ago

OnkelMato commented 1 month ago

As a developer, I want to use nested classes, so that I can design my application with vertical feature slices.

For vertical slices, a static class is created which contains all concerns like handler or dtos. This includes the endpoint definition through Carter modules.

This tiny fix reads all public nested classes as well as the public classes. This fixes issue #327

jchannon commented 1 month ago

@OnkelMato why did you close this? happy to merge

OnkelMato commented 1 month ago

I reviewed my changes and was not satisfied with the quality. A new pull request was created.