BindConfiguration() connects an options type to a named configuration section through an OptionsBuilder<T>, giving the application a strongly typed options object. section 31.2
Bind the Currencies section
builder.Services .AddOptions<CurrencyOptions>() .BindConfiguration("Currencies") .Configure(opts => opts.Currencies = new[] { "GBP", "USD" }); The builder binds the Currencies configuration section, then applies additional configuration. Injecting IOptions<CurrencyOptions> retrieves the resulting value. section 31.2
