Steve Talks Code
Coding thoughts about .NET
About
Blog
Tags
Categories
Archives
Talks
Guest Appearances
Search
RSS
Should I be Checking Injected Dependencies for Null?
20 Dec 2020
.NET Core
ASP.NET Core
Configuration
Dependency Injection
In this post, I present my Top 5 scenarios of null injections from the .NET Dependency Injection container and use these to justify adding guard clauses to your C# constructors in consuming classes.
Understanding Disposables In .NET Dependency Injection - Part 3
17 Nov 2020
ASP.NET Core
Clean Code
Dependency Injection
Design Patterns
.NET Core
IDisposable
Following on from Parts 1 and 2, in this final part of the series, I move on to dealing with types that you do not have source control for and therefore cannot change directly to hide the Dispose method using the techniques I have described in the previous posts.
Understanding Disposables In .NET Dependency Injection - Part 2
17 Nov 2020
ASP.NET Core
Clean Code
Dependency Injection
Design Patterns
.NET Core
IDisposable
Following on from Part 1 where I provide an overview of hiding the Dispose method from consumers of the Dependency Injection container, in this part, I move on to dealing with objects that are created outside, but registered with the DI container.
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.
C# 9 Record Factories
20 Oct 2020
C# 9
Clean Code
Design Patterns
In this post, I walk through using the Factory Pattern to create instances of C# 9 records where instances can be created using a combination of input from the IoC container, caller input and computed values derived from these.
Merging Multiple Git Repositories Into A Mono-Repo with PowerShell (Part 2)
11 Oct 2020
Dev Ops
Git
Monorepo
Following on from Part 1 where I give the background as to the reasons that I wanted to move to a single Git repository (also known as a mono-repo), this post provides a walk-through of the PowerShell script that I created to do the job.
< Older
Newer >
Recent Blog Posts
Could .NET Source Generator Attacks Be A Danger To Your Code?
Debugging C# Source Generators with Visual Studio 2019 16.10
JetBrains Dependency Injection Webinar
Using OpenApiReference To Generate Open API Client Code
Latest on Twitter
Search Text
Close Search
No results found
Tags
.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)
Swagger (1)
Visual Studio (2)
Webinars (1)