Steve Talks Code
Coding thoughts about .NET
About
Blog
Tags
Categories
Archives
Talks
Guest Appearances
Search
RSS
Dependency Injection
Blog posts relating to dependency injection
Understanding Disposables In .NET Dependency Injection - Part 1
17 Nov 2020
ASP.NET Core
Clean Code
Dependency Injection
Design Patterns
.NET Core
IDisposable
In this post I will be discussing the traps that can catch you out by potentially creating memory leaks when registering types that implement the IDisposable interface as services with the out-of-the-box .NET Dependency Injection container.
An IStartup Gotcha - The Curious Incident of the Missing Log Provider
11 Apr 2018
ASP.NET Core
Dependency Injection
In this post I address a problem with injecting values into the constructor of a class that implemented IStartup and why doing this does not work.
Newer >
Share this post
Twitter
Linked In
Facebook
Recent Blog Posts
Source Generated RegEx in .NET 7
Creating a ZX Spectrum Image Load Video
Could .NET Source Generator Attacks Be A Danger To Your Code?
Debugging C# Source Generators with Visual Studio 2019 16.10
Latest on Twitter
Search Text
Close Search
No results found
Tags
.NET 7 (1)
.NET Core (16)
ASP.NET Core (17)
C# 9 (5)
Clean Code (10)
Code Generation (3)
Configuration (6)
Continuous Integration and Deployments (1)
Dependency Injection (8)
Design Patterns (13)
Dev Ops (2)
Git (2)
IDisposable (3)
Middleware (2)
Monorepo (2)
Octopus Deploy (1)
OpenAPI (1)
Retro Computing (1)
Swagger (1)
Visual Studio (2)
Webinars (1)