We know that the registering style should look like builder.RegisterType<EmailService1>().As<ISendEmailService>().SingleInstance(); while asp.net core built-in uses services.AddSingleton<ISendEmailService, EmailService1>();
I wonder if we can keep the built-in style and use Autofac as DI engine? I have a project used to use asp.net core built-in DI [Microsoft.Extensions.DependencyInjection], we want to swtich to Autofac without rewriting all register codes from built-in one to Autofac one. Is it possible?
p.s. I have installed Autofac.Extensions.DependencyInjection and set up as document mentioned