Implementing Autofac in ASP.NET
Autofac is 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. This course will help you get there.
What you'll learn
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.
Table of contents
- Introduction 1m
- Course Agenda 1m
- Course Agenda, Continued 2m
- Begin Autofac Primer 1m
- Overview of Primer App in Raw State 2m
- Introduce Abstractions 1m
- Library Class' Modification 3m
- Hard-to-Maintain Instantiations 1m
- Install Autofac and Registrations 3m
- Resolving the Service 3m
- EasyBlog Intro 1m
- EasyBlog Architecture 4m
- Untestable Controllers 2m
- Run Demo 2m
- Overview 1m
- Component Lifetime 2m
- Registration Techniques 1m
- Lifetime in Controller Components 2m
- Singleton Test 2m
- Register Extensibility Manager 2m
- Resolve and Initialize the Manager 2m
- Registration Parameters 3m
- Assembly Scan and Register 1m
- Assembly Scan and Register, Continued 2m
- Registration Modules 2m
- Create Configuration 2m
- Load and Register Configuration 3m
- Summary 1m
- Overview 1m
- Standard Injection 1m
- On-demand Resolve 2m
- Injecting into Views 1m
- Home Controller Modification 2m
- Property Injection Test 1m
- Create Component Locator 2m
- Inject Container into Component Locator 1m
- Inject into API Controller and Modify 1m
- Finish Modifications and Register in Container 1m
- Injecting Extensibility Manager 1m
- Create and Register Local String Component 1m
- Inject into Layout View 2m
- Inject into Other Views 2m
- Summary 0m
- Overview 0m
- Decorators 2m
- Extensibility Manager Before-state 2m
- Configuration Factory Constructs 2m
- Inject and Use Configuration Factory 1m
- Replace Activator.CreateInstance 1m
- Wildcard Concrete Class Registration 4m
- Filters 1m
- Logger Class and Interface 1m
- LogMvcAction Filter 2m
- Register MVC Filter and Test 2m
- LogWebApiAction Filter 2m
- Register API Filter and Test 2m
- Global Filters 3m
- Summary 1m
- Overview 1m
- Owin 2m
- Owin Project Overview 2m
- Add Autofac Packages 1m
- Register Components and Build Container 2m
- Set up "Use" Statements 2m
- Middleware Order Control 1m
- Adjust Controller Class 1m
- Adjust Middleware Component 2m
- Test Run and Examine Results 1m
- Web Forms 1m
- Install Autofac Packages 2m
- Set up Container and Registrations 2m
- Modify Web.Config 1m
- Modify Code-behind Classes 1m
- Demo Run 1m
- Client-side Libraries Mention and Farewell 2m