Wonderful Microsoft.Extensions.DependencyInjection.IServiceCollection
has a lot of extensions associated with it.
One example is Microsoft.Extensions.Logging.ConsoleLoggerExtensions
and AddConsole(this ILoggingBuilder builder)
method which registers ConsoleLoggerProvider
in ILoggingBuilder.Services
property of type IServiceCollection
.
So, the logical question for anyone using Autofac. How to re-use all this extensions? Is there's a way to convert all IServiceCollection
registrations to ContainerBuilder
registrations?