首页 > 编程语言 >Dependency injection in ASP.NET Core

Dependency injection in ASP.NET Core

时间:2022-11-16 15:44:40浏览次数:53  
标签:Core ASP dependency Dependency injection NET

Dependency injection in ASP.NET Core

By Kirk Larkin, Steve Smith, Scott Addie, and Brandon Dahler

ASP.NET Core supports the dependency injection (DI) software design pattern, which is a technique for achieving Inversion of Control (IoC) between classes and their dependencies.

For more information specific to dependency injection within MVC controllers, see Dependency injection into controllers in ASP.NET Core.

For information on using dependency injection in applications other than web apps, see Dependency injection in .NET.

For more information on dependency injection of options, see Options pattern in ASP.NET Core.

This topic provides information on dependency injection in ASP.NET Core. The primary documentation on using dependency injection is contained in Dependency injection in .NET.

View or download sample code (how to download)

Overview of dependency injection

 

标签:Core,ASP,dependency,Dependency,injection,NET
From: https://www.cnblogs.com/chucklu/p/16896101.html

相关文章