Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jayd16
on Sept 13, 2021
|
parent
|
context
|
favorite
| on:
Minimal APIs at a glance in .NET 6
Probably attributes have to be added to classes, builders can receive types through a method. If you can't change the code, you can't use attributes.
Construction time is also probably the safest place to inject dependencies.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Construction time is also probably the safest place to inject dependencies.