Dependency Injection in .NET Core 2.0

Nonfiction, Computers, Programming, Programming Languages, Visual BASIC
Cover of the book Dependency Injection in .NET Core 2.0 by Marino Posadas, Tadit Dash, Packt Publishing
View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart
Author: Marino Posadas, Tadit Dash ISBN: 9781787129573
Publisher: Packt Publishing Publication: November 9, 2017
Imprint: Packt Publishing Language: English
Author: Marino Posadas, Tadit Dash
ISBN: 9781787129573
Publisher: Packt Publishing
Publication: November 9, 2017
Imprint: Packt Publishing
Language: English

Inject dependencies and write highly maintainable and flexible code using the new .NET Core DI Engine

About This Book

  • 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.

Who This Book Is For

C# and .NET developers who have no idea what DI is and would like to understand how to implement it in their applications.

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.

In Detail

.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.

View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart

Inject dependencies and write highly maintainable and flexible code using the new .NET Core DI Engine

About This Book

Who This Book Is For

C# and .NET developers who have no idea what DI is and would like to understand how to implement it in their applications.

What you will learn

In Detail

.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.

More books from Packt Publishing

Cover of the book Getting Started with SBT for Scala by Marino Posadas, Tadit Dash
Cover of the book jQuery Mobile Web Development Essentials, Second Edition by Marino Posadas, Tadit Dash
Cover of the book Microsoft Dynamics CRM 2015 Application Design by Marino Posadas, Tadit Dash
Cover of the book Web Application Development with Yii and PHP by Marino Posadas, Tadit Dash
Cover of the book Nginx HTTP Server by Marino Posadas, Tadit Dash
Cover of the book Julia High Performance by Marino Posadas, Tadit Dash
Cover of the book Scala Microservices by Marino Posadas, Tadit Dash
Cover of the book React Native - Building Mobile Apps with JavaScript by Marino Posadas, Tadit Dash
Cover of the book Pentaho Data Integration Beginner's Guide, Second Edition by Marino Posadas, Tadit Dash
Cover of the book D3.js By Example by Marino Posadas, Tadit Dash
Cover of the book Mastering Magento 2 - Second Edition by Marino Posadas, Tadit Dash
Cover of the book Implementing Microsoft Dynamics NAV - Third Edition by Marino Posadas, Tadit Dash
Cover of the book Implementing Cloud Design Patterns for AWS by Marino Posadas, Tadit Dash
Cover of the book Go Cookbook by Marino Posadas, Tadit Dash
Cover of the book Scientific Computing with Python 3 by Marino Posadas, Tadit Dash
We use our own "cookies" and third party cookies to improve services and to see statistical information. By using this website, you agree to our Privacy Policy