C#C
C#3y ago
Davide

❔ IOptions pattern in WebAPI getting null value

I'm trying to use the IOptions pattern with Dep. Injection, however when i debug the code i get null values in the injected object.
I've tried to use the .AddOptions() method to the builder ServiceCollection but still i get null values
image.png
image.png
Was this page helpful?