Book Image

ASP.NET Core Essentials

By : Shahed Chowdhuri
Book Image

ASP.NET Core Essentials

By: Shahed Chowdhuri

Overview of this book

<p>ASP.NET Core is the latest collection of Microsoft’s web application development technologies. When you’re trying to reach a broad spectrum of users with a robust web application, ASP.NET Core is there to help you build that application. With the ability to cater to users on desktop, tablet, or smartphone platforms, you can put together a solution that works well anywhere.</p> <p>This book is what you need to get started developing ASP.NET Core applications was quickly as possible; starting by introducing the software and how it can be used in today’s modern world of web applications and smartphone apps. Walking you through the benefits of a Web API to support both applications and mobile apps to give you a solid understanding of the tech to build upon as you see what ASP.NET Core can do for you.</p> <p>The book wraps up with practical guidelines for the use of database technologies, unit tests, security best practices, and cloud deployments for the real world.</p>
Table of Contents (15 chapters)
ASP.NET Core Essentials
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Understanding IoC


IoC is a well-known pattern that invents the control of how dependent objects are created within software components. Using DI allows us to implement IoC in our software applications. Let's take a look at an actual scenario to illustrate what this means.

If you are already familiar with DI and IoC, feel free to skip this section and jump right into the code in the next section. If you're not familiar with this topic, or have not had a chance to use it in your real-life projects, this section aims to help you become more comfortable with it.

Pros and cons of DI

Both experienced developers and beginners have opinions on whether DI is right for them or not. As a result, there are arguably many pros and cons for and against the use of DI and IoC in your projects.

Here are some reasons why DI is a good choice:

  • Helps with adhering to the Dependency Inversion Principle (DIP)

  • Allows objects to be easily swapped with replacements

  • Facilitates the use of the Strategy Design Pattern (SDP...