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

DI options in ASP.NET Core


When it comes to DI, you have a few choices to select from. When it comes to DI in ASP.NET Core, you already know that you have the benefit of selecting from the built-in IoC container.

But what other options do you have and how should you decide when to select one over another?

Built-in IoC

If you're just getting started with ASP.NET Core, I would highly recommend going with the simplest choice for DI. Go with what's included out-of-the-box. If you're especially new to DI and IoC containers, you should definitely stick with the default IoC container.

If you're already very familiar with other alternatives, you could start with what you know. For example, if you have used Autofac extensively as your IoC container in past projects, you may want to stick with Autofac for new ASP.NET Core projects.

Autofac

Autofac is already used by many ASP.NET developers, and was available for ASP.NET Core long before its official release. In this section, we will take a look at how we...