Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Access config settings from appsetting.json in Controller using DI

In the previous post we saw the options to read configsetting values in Startup, in this post we shall see on how to get the config setting values in the controller. We will inject the configuration object to the service and the same will be made available in the Controller using Dependency Injection.


This post first appeared on C# Guide, please read the originial post: here

Share the post

Access config settings from appsetting.json in Controller using DI

×

Subscribe to C# Guide

Get updates delivered right to your inbox!

Thank you for your subscription

×