Skip to content

Pact Web Extensions ServiceCollectionExtensions

welshronaldo edited this page May 30, 2022 · 5 revisions

ServiceCollectionExtensions Class

public static class ServiceCollectionExtensions

Inheritance System.Object 🡒 ServiceCollectionExtensions

Methods
GetConfigurationSection<T>(IServiceCollection, IConfiguration) Retrieves a strongly-typed named section from the configuration, but also registers it with Configure internally.
This override assumes the name of the configuration section matches the type name of the configuration object.
GetConfigurationSection<T>(IServiceCollection, IConfiguration, IConfigurationSection) Retrieves a strongly-typed named section from the configuration, but also registers it with Configure internally.
This override assumes the name of the configuration section matches the type name of the configuration object.
GetConfigurationSection<T>(IServiceCollection, IConfiguration, string) Retrieves a strongly-typed named section from the configuration, but also registers it with Configure internally.
GetConfigurationSection<T>(IServiceCollection, IConfiguration, string, IConfigurationSection) Retrieves a strongly-typed named section from the configuration, but also registers it with Configure internally.
Clone this wiki locally