Class Setup
- Namespace
- Invex.Rez.Configuration
- Assembly
- Invex.Rez.Configuration.dll
Provides extension methods for registering Rez configuration services with dependency injection.
[PublicAPI]
public static class Setup
- Inheritance
-
objectSetup
Methods
AddResolvableConfiguration(IServiceCollection)
Registers an IResolvableConfig singleton that wraps the application's Microsoft.Extensions.Configuration.IConfigurationRoot and resolves Rez templates in configuration values on read.
public static IServiceCollection AddResolvableConfiguration(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe service collection to add the registration to.
Returns
- IServiceCollection
The service collection, allowing calls to be chained.
Remarks
Both Microsoft.Extensions.Configuration.IConfigurationRoot and IResolver must be registered in the service collection for the IResolvableConfig to be constructed.