你的位置: 码友网首页 / 资讯源列表 / Injecting Services to ASP.NET Core Controller Actions

关于[Injecting Services to ASP.NET Core Controller Actions]的摘要:

ASP.NET Core comes with a thin but rich and powerful built-in dependency injection mechanism we can use to inject instances to controllers and some other parts of web applications. Although constructor injection is the most famous dependency injection method for controllers, there is also dependency injection to controller actions available. This post introduces controller action injection and shows how to benefit from it.

原文地址: https://dzone.com/articles/injecting-services-to-aspnet-core-controller-actio

收录时间: 2018-07-04 浏览量: 2324 分类: ASP.NET Core

| 0 收藏 | 0