Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 1.21 KB

File metadata and controls

18 lines (15 loc) · 1.21 KB

Reading Configurations in .Net Core

Diffrent ways to read configuration settings from appsettings.json file in Asp.net Core web application

This project demonstrates how to access/read configurations using IConfiguration in an ASP.NET Core projects. This demo project covers the following points -

  • Read settings using IConfiguration
  • Access a strongly typed value using GetValue method
  • Access a section using the GetSection method
  • Access section and bind with strongly typed class using the Bind method

This project was originally developed as a demo project for the following posts:

Accessing configurations in Asp.Net Core project
ASP.NET Core - Accessing Configurations Using Options Pattern
ASP.NET Core - Accessing Configurations using Named Options