Dependency Injection in .NET Core 2.0


Dependency Injection in .NET Core 2.0:Make use of constructors,parameters,setters,and interface injection to write reusable and loosely-coupled code
Authors:Marino Posadas - Tadit Dash
ISBN-10 书号:1787121305
ISBN-13 书号:9781787121300
Release Finelybook 出版日期:2017-11-13
pages 页数:436 pages


Book Description
Key Features
Identify when to use the constructors,parameters,setters,or Interface Injection,for best results
Build dependencies not only for MVC within .NET but also for other frontend tools such as Angular
Create specific components or services to cover discrete and separate pieces of functionality and call them when needed.


Book Description
.NET Core provides more control than ever over web application architectures. In this view of software architecture,one key point is that it's based on the use of Dependency Injection,as a way to properly implement the Dependency Inversion principle proposed in the SOLID principles established by Robert C. Martin.
With the advent of .NET Core,things have become much simpler with DI built into the system. This book aims to give you a profound insight into writing loosely-coupled code using the latest features available in .NET Core. It talks about constructors,parameter,setters,and Interface Injection,explaining in detail,with the help of examples,which type of injection to use in which situation. It will show you how to implement a class that creates other classes with associated dependencies,also called IoC containers,and then create dependencies for each MVC component of ASP.NET Core. You'll learn to distinguish between IoC containers,the use of Inversion of Control,and DI itself,since DI is just a way of implementing IoC via these containers. You'll also learn how to build dependencies for any other frontend tool such as Angular. You will get to use the in-built services offered by .NET Core to create your own custom dependencies.
Towards the end,we'll talk about some patterns and anti-patterns for Dependency Injection along with some techniques to refactor legacy applications and inject dependencies.
What you will learn
Understand the concept of DI and its implications in modern software construction
Learn how DI is already implemented in today's frameworks.
Analyze how DI can be used with current software to improve maintainability and scalability.
Learn the use of DI in .NET Core
Get used to the possibilities that DI offers the ASP.NET Core developer in different scenarios.
Learn about good practices and refactoring legacy code.
Contents
Chapter 1. The Solid Principles Of Software Design
Chapter 2. Dependency Injection And Ioc Containers
Chapter 3. Introducing Dependency Injection In .Net Core 2.0
Chapter 4. Dependency Injection In Asp.Net Core
Chapter 5. Object Composition
Chapter 6. Object Lifetime
Chapter 7. Interception
Chapter 8. Patterns - Dependency Injection
Chapter 9. Anti-Patterns And Misconceptions On Dependency Injection
Chapter 10. Dependency Injection In Other Javascript Frameworks
Chapter 11. Best Practices And Other Related Techniques

下载地址:应版权方要求,该资源内容链接已移除!

你可以 登录 后获取帮助.

觉得文章有用就打赏一下
未经允许不得转载:finelybook » Dependency Injection in .NET Core 2.0

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏