Dependency Injection in C# and .NET with the Autofac Library

Dependency Injection in C# and .NET with the Autofac Library

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 5 Hours | 735 MB

An in-depth course on Dependency Injection and Inversion of Control

This is a course covering Dependency Injection in .NET using the Autofac library. The goal of the course is to provide in-depth coverage of the concept of dependency injection and give examples of how DI/IoC is used in the modern world.

This course covers the following topics:

  • The concepts of Dependency Injection and Inversion of Control and what they are for
  • Components and Services (terminology used by the Autofac container)
  • Component Registration including assembly and module scanning
  • Controlling Scope and Lifetime
  • Configuration including XML/JSON and Modules
  • Plenty of advanced topics for the connoisseur
Table of Contents

None
1 Introduction

Dependency Injection and Inversion of Control
2 Dependency Injection and Inversion of Control
3 An Overview of DI Frameworks
4 Getting Started with Autofac

Registration Concepts
5 Overview
6 Scenario Without DI
7 Registering Types Reflection Components
8 Default Registrations
9 Choice of Constructor
10 Registering Instances Instance Components
11 Lambda Expression Components
12 Open Generic Components
13 Summary

Advanced Registration Concepts
14 Overview
15 Passing Parameters to Register
16 Property and Method Injection
17 Scanning for Types
18 Scanning for Modules
19 Summary

Implicit Relationship Types
20 Overview
21 Delayed Instantiation
22 Controlled Instantiation
23 Dynamic Instantiation
24 Parameterized Instantiation
25 Enumeration
26 Metadata Interrogation
27 Keyed Service Lookup
28 Container Independence
29 Summary

Controlling Scope and Lifetime
30 Overview
31 Instance Scope
32 Captive Dependencies
33 Disposal
34 Lifetime Events
35 Running Code at Startup
36 Summary

Configuration
37 Overview
38 Why Modules
39 Using Modules
40 JSONXML Configuration with Microsoft Configuration
41 Component Options
42 Configuration of Modules
43 Summary

Advanced Topics
44 Overview
45 Registration Sources
46 Adapters
47 Decorators
48 Circular Dependencies
49 Attribute Based Metadata
50 Aggregate Services
51 Type Interceptors
52 Summary

End of Course
53 ASP.NET MVC Integration
54 Course Summary
55 Bonus Lecture Other Courses at a Discount