Using options pattern in web apis and console apps
In this demo, i'm using IOptions
, IOptionsMonitor
and IOptionsSnapshot
in 2 projects (web api & console app).
Solution structure :
- Api : web api
- App : console app
- Lib : shared code between web api and console app
Tools
: net8.0