Learning how Dependency Injection (DI) works and setting it up in sample console apps is good and necessary, but it is only half the battle. You need to know how to implement it into the app you are writing. Though DI with Autofac is usable in any kind of application, the web represents a large portion of the apps developers are writing, and not everyone has the luxury of jumping on ASP Core. In this course, Implementing Autofac in ASP.NET, you'll learn how to implement Autofac in an ASP.NET application. First, you'll get started from the installation with every branch of ASP.NET, this includes, MVC, Web API, OWIN, and even Web Forms. Next, you'll learn how to get Autofac up and running in your ASP.NET application, no matter what kind. Finally, you'll review some implementation patterns and scenarios that extend beyond just using it in a controller. When you're finished with this course, you'll have the skills to reap the benefits of DI with Autofac in ASP.NET together and have some good geeky programming fun along the way.
Whether playing on the local Radio Shack’s TRS-80 or designing systems for clients around the globe, Miguel has been writing software since he was 12 years old. He keeps himself heavily involved in every aspect, layer, nook, and cranny of app development and would not have it any other way.
Course Overview (Music playing) If you adopted Autofac as your dependency injection tool of choice, you've chosen one of the more powerful, yet easy-to-use DI containers out there, but you still need to know how to properly implement it in your applications. Now, ASP.NET Core has become all the rage, but you shouldn't feel left out if your organization hasn't moved to it yet. This is the course to watch if you want to learn how to implement Autofac in ASP.NET applications. Like any good tool, part of its power is in understanding the little details that may not be that obvious, and you've come to the right place to learn that. You'll get an Autofac primer and then jump right into plugging it all into an ASP.NET application. And I mean an ASP.NET application that contains both MVC and Web API use, and we'll make all of it Autofac-aware. And because Web API has more than one way of being used, I'll show you how to implement Autofac into OWIN-based Web API services, too. But DI usage is more than just registration and resolve, the power of what you can do is extended by applying some design patterns to your application, and I'm going show you how to use Autofac-based decorators to apply DI in places you may not have thought possible. I'll also show you how to plug Autofac into areas of ASP.NET beyond controllers; I'm talking about MVC and Web API filters, as well as OWIN-based middleware components. And coverage of ASP.NET in full would not be complete without talking about web forms, Microsoft's first ASP.NET platform that still keeps a large user base. And yes, Autofac is compatible with that as well. So join me on this whirlwind tour of Autofac usage in all things ASP.NET and get ready to have fun and to spiff up your applications with the power of dependency injection through Autofac.