ServiceCollectionConfigureExtensions.ConfigureSection<TOptions> method

namespace: Serenity.Extensions.DependencyInjection   assemblySerenity.Net.Web

Calls Configure&lt;TOptions&gt; with the section key determined from DefaultSectionKeyAttribute on 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.

See Also