Comparing ASP.NET Core IoC container service lifetimes with Autofac IoC container instance scopes

added by DotNetKicks
3/19/2019 11:47:44 AM

2 Kicks, 108 Views

Cesar In ASP.NET Core you can use the simple built-in IoC container or you can also plug any other more advanced IoC container like Autofac. When plugin an external container like Autofac, you can still use ASP.NET Core methods like services.AddTransient or services.AddSingleton or you can also use the more granular methods in Autofac based on its instance scopes, which offer a larger set of possibilities.


0 comments