Top
image credit: Piqsels

How to use the options pattern in ASP.NET Core

May 11, 2020

Via: InfoWorld

When working in ASP.NET Core you will often specify your application’s settings, store them in some file, and then retrieve these settings when the application needs them. Typically, you would register your dependencies in the ConfigureServices method of the Startup class. You can specify your application’s settings in the appsettings.json or some other .json file and then take advantage of dependency injection through IOptions<T> to read these settings in your application.

Read More on InfoWorld