Dependency injection in .NET Core console applications

added by DotNetKicks
2/14/2019 10:19:23 AM

2 Kicks, 818 Views

ASP.NET Core uses built-in dependency injection mechanism provided by Microsoft. This blog post intorduces how to use same mechanism in .NET Core console applications. For those who like other DI/IoC frameworks this writing provides demo about how to use Autofac with .NET Core framework-level dependency injection.