ServiceCollectionConfigureExtensions.ConfigureSection<TOptions> method
namespace: Serenity.Web assembly: Serenity.Net.Web
Registers a configuration instance which TOptions will bind against from a root configuration with the default section key for TOptions
public static IServiceCollection ConfigureSection<TOptions>(this IServiceCollection services,
IConfiguration config)
where TOptions : class
parameter | description |
---|---|
TOptions | The type of options being configured. |
services | The IServiceCollection to add the services to. |
config | The configuration being bound. |
Return Value
The IServiceCollection so that additional calls can be chained.