首页> 外文期刊>MSDN Magazine >Dependency Injection with .NET Core
【24h】

Dependency Injection with .NET Core

机译:.NET Core的依赖注入

获取原文
获取原文并翻译 | 示例

摘要

In my last two articles, "Logging with .NET Core", and, "Configuration in .NET Core", I demonstrated how .NET Core functionality can be leveraged from both an ASP.NET Core project (project.json) and the more common .NET 4.6 C# project (*.csproj). In other words, taking advantage of the new framework isn't limited to those who are writing ASP.NET Core projects. In this column I'm going to continue to delve into .NET Core, with a focus on .NET Core dependency injection (DI) capabilities and how they enable an inversion of control (IoC) pattern. As before, leveraging .NET Core functionality is possible from both "traditional" CSPROJ files and the emerging project.json type projects. For the sample code, this time I'll be using XUnit from a project.json project.
机译:在我的最后两篇文章“使用.NET Core登录”和“ .NET Core中的配置”中,我演示了如何从ASP.NET Core项目(project.json)以及更多内容中利用.NET Core功能。常见的.NET 4.6 C#项目(* .csproj)。换句话说,利用新框架不仅限于编写ASP.NET Core项目的人员。在本专栏中,我将继续研究.NET Core,重点是.NET Core依赖项注入(DI)功能以及它们如何实现控制反转(IoC)模式。和以前一样,可以从“传统” CSPROJ文件和新兴的project.json类型项目中利用.NET Core功能。对于示例代码,这次我将使用来自project.json项目的XUnit。

著录项

  • 来源
    《MSDN Magazine》 |2016年第6期|6668-69|共3页
  • 作者

    MARK MICHAELIS;

  • 作者单位
  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号