Слушайте и четете

Открийте безкрайна вселена от истории

  • Слушайте и четете неограничено
  • Над 500 000 заглавия
  • Ексклузивни и Storytel Original заглавия
  • Можете да прекратите лесно по всяко време
Пробвайте Storytel
BG - Details page - Device banner - 894x1036

Dependency Injection in .NET Core 2.0: Make use of constructors, parameters, setters, and interface injection to write reusable and loosely-coupled code

Език
Английски
Format
Категория

Документални

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. A key point of this software architecture 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 Dependency Injection 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 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.

Style and Approach

Filled with examples, this book will take you through various techniques for injecting dependencies into your applications with or without the use of frameworks.

© 2017 Packt Publishing (Е-книга): 9781787129573

Дата на публикуване

Е-книга: 13 ноември 2017 г.

Разгледай още от

    Другите харесаха също...

    Избери своя абонамент:

    • Над 500 000 заглавия

    • Сваляте книги за офлайн слушане

    • Ексклузивни заглавия + Storytel Original

    • Детски режим (безопасна зона за деца)

    • Лесно прекратявате по всяко време

    Най-популярен

    Unlimited

    Най-добрият избор. Открийте хиляди незабравими истории.

    7.66 € | 14.99 лв. /месец
    • 1 профил

    • Неограничен достъп

    • Избирайте от хиляди заглавия

    • Слушайте и четете неограничено

    • Прекратете по всяко време

    Пробвайте сега

    Unlimited Годишен

    12 месеца на цената на 8. Избирайте от хиляди заглавия.

    61.35 € | 119.99 лв. /година
    7 дни безплатно
    Спестете 33%!
    • 1 профил

    • Неограничен достъп

    • 5.11 € | 9.99 лв. на месец

    • Слушайте и четете неограничено

    • Прекратете по всяко време

    Пробвайте 7 дни безплатно

    Family (2 акаунта)

    Споделете историите със семейството или приятелите си.

    11.24 € | 21.99 лв. /30 дни
    • 2 профила

    • Неограничен достъп

    • Потопете се заедно в света на историите

    • Слушайте и четете неограничено

    • Прекратете по всяко време

    Пробвайте 7 дни безплатно

    Family (3 акаунта)

    Споделете историите със семейството или приятелите си.

    13.29 € | 25.99 лв. /30 дни
    • 3 профила

    • Неограничен достъп

    • Потопете се заедно в света на историите

    • Слушайте и четете неограничено

    • Прекратете по всяко време

    Пробвайте 7 дни безплатно