{"product_id":"9781787129573","title":"Dependency Injection in .NET Core 2.0","description":"\u003cp\u003e\u003cb\u003eInject dependencies and write highly maintainable and flexible code using the new .NET Core DI Engine\u003c\/b\u003e\u003c\/p\u003eAbout This Book\u003cul\u003e\n\u003cli\u003eIdentify when to use the constructors, parameters, setters, or Interface Injection, for best results\u003c\/li\u003e\n\u003cli\u003eBuild dependencies not only for MVC within .NET but also for other frontend tools such as Angular\u003c\/li\u003e\n\u003cli\u003eCreate specific components or services to cover discrete and separate pieces of functionality and call them when needed.\u003c\/li\u003e\n\u003c\/ul\u003eWho This Book Is For\u003cp\u003eC# and .NET developers who have no idea what DI is and would like to understand how to implement it in their applications.\u003c\/p\u003eWhat You Will Learn\u003cul\u003e\n\u003cli\u003eUnderstand the concept of DI and its implications in modern software construction\u003c\/li\u003e\n\u003cli\u003eLearn how DI is already implemented in today's frameworks.\u003c\/li\u003e\n\u003cli\u003eAnalyze how DI can be used with current software to improve maintainability and scalability.\u003c\/li\u003e\n\u003cli\u003eLearn the use of DI in .NET Core\u003c\/li\u003e\n\u003cli\u003eGet used to the possibilities that DI offers the ASP.NET Core developer in different scenarios.\u003c\/li\u003e\n\u003cli\u003eLearn about good practices and refactoring legacy code.\u003c\/li\u003e\n\u003c\/ul\u003eIn Detail\u003cp\u003e.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.\u003c\/p\u003e\u003cp\u003eWith 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.\u003c\/p\u003e\u003cp\u003eTowards 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.\u003c\/p\u003eStyle and Approach\u003cp\u003eFilled with examples, this book will take you through various techniques for injecting dependencies into your applications with or without the use of frameworks.\u003c\/p\u003e","brand":"Packt Publishing","offers":[{"title":"Default Title","offer_id":47136973127920,"sku":"9781787129573","price":39.99,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0737\/7593\/9824\/files\/9781787129573_p0.jpg?v=1763737871","url":"https:\/\/shop-qa.barnesandnoble.com\/products\/9781787129573","provider":"Barnes \u0026 Noble (DEV)","version":"1.0","type":"link"}