Putting this here, so it might help someone else in the future!
Couldn't find an example for version 5 of ASP.NET Core - the number of breaking changes in ASP.NET Core is incredible, and a big negative for the framework when looking to integrate 3rd party services such as logging & IOC.
Steps:
1. Add nuGet packages:
Autofac
Autofac.Extensions.DependencyInjection
Autofac.Extensions.DependencyInjection
2. Update Program.cs file to add AutoFac Factory:
Highlighted the import part in Red:
Comments
Post a Comment