Steve Talks Code
Coding thoughts about .NET
About
Blog
Tags
Categories
Archives
Talks
Guest Appearances
Search
RSS
.NET Core
Posts relating to .NET Core
Clean Architecture - Should I Move the Startup Class to Another Assembly?
6 Jun 2018
ASP.NET Core
Clean Code
Design Patterns
In this post, I look at whether it is worth moving the dependency registrations in the Startup.cs class into its own assembly to maintain a clean code approach to the top level web application.
Getting Dependencies by Name or Key using the .NET Core Container (Part 1)
18 Jan 2020
.NET Core
ASP.NET Core
Clean Code
Design Patterns
In this post, I demonstrate how to use custom typed delegates to perform named/keyed dependency injection using the Microsoft Dependency Injection container in .NET core.
Getting Dependencies by Name or Key using the .NET Core Container (Part 2)
19 Jan 2020
.NET Core
ASP.NET Core
Clean Code
Design Patterns
This post describes how the use of custom typed delegates can be used to implement named or keyed dependency resolution using the Microsoft DI container that comes with .NET Core.
Simplifying Dependency Injection with Functions over Interfaces
20 Jan 2020
ASP.NET Core
Clean Code
Design Patterns
.NET Core
This post shows how to apply functional programming techniques to dependency injection to simplify single method classes.
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.
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.
< Older
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)