|
|
|
|
|
by jtbaker
276 days ago
|
|
do you still use the framework's DI pattern with this approach? I have an older school .NET app I work on (still Core) sometimes and haven't gotten much experience with the minimal APIs, although it looks attractive as someone that prefers lower level routers. |
|
The DI pattern is simple & clean at this scale. In my top-level program I define my routes like:
And then I have HandleRequest implementations like: The actual HandleRequest() method can do anything, including concerns like directly accepting and handling web socket connections.