~/talk

Dependency Injection in ASP.NET Core

Talkat .NET Summit Belarus 2017 · on Saturday, 2017-09-23· [dotnet, software-architecture]
links:none on file
slides:none on file

Microsoft.Extensions.DependencyInjection provides a minimal DI surface with IServiceCollection for registrations and IServiceProvider for resolution, implements three lifetimes Singleton/Transient/Scoped, and disposes scope services automatically at request end. Demo registers services, shows singletons persist, transients differ each resolve, scoped reuse per HTTP request, and disposal on scope end works. External containers integrate by reading the service collection (eg Autofac Populate or Castle Windsor bridge) to return an IServiceProvider and add features like interception, factories, open generics and custom lifetime policies.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:17Built-in DI in ASP.NET Core
  3. 18:00External DI containers comparison
  4. 22:22Basic DI configuration demo
  5. 33:05Integrating external containers
  6. 39:55Best practices for DI usage
  7. 42:10When to use built-in vs external containers
  8. 44:20Service locator pattern discussion
  9. 46:44DI vs dependency inversion explained
  10. 48:35Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.