Autoconf is a very small extension library for Autofac. It allows to register specialized configuration classes at Autofac's ContainerBuilder seamlessly.
- Register a specialized configuration class via
RegisterConfiguration()at theContainerBuilder.- Example:
containerBuilder .RegisterConfiguration<MyTestConfig>() .As<IMyTestConfig>();
- Example:
- Log the registered configuration
- Requires
ILogger(namespace:Microsoft.Extensions.Logging) to be registered. - Requires
IConfiguration(namespace:Microsoft.Extensions.Configuration) to be registered.