asp.net-core – Option model and configuration

When dealing with large configuration sets of value, it might become quite unhandy to load them one buy one.

Option model which comes with asp.net offers a convenient way to map a section to a dotnet poco:
For instance, one might hydrate StorageOptions directly from a configuration section b adding Microsoft.Extensions.Options.ConfigurationExtensions package and calling the Configure<TOptions>(IConfiguration config) extension method.

services.Configure<StorageOptions>(Configuration.GetSection("Storage"));

if you want to reproduce, please indicate the source:
asp.net-core – Option model and configuration - CodeDay