Steve Talks Code
Coding thoughts about .NET
About
Blog
Tags
Categories
Archives
Talks
Guest Appearances
Search
RSS
Configuration
Blog posts relating to configuration
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.
Using IConfigureOptions <TOptions> To Apply Changes to a Configuration
1 May 2018
.NET Core
ASP.NET Core
Configuration
In this post, I look at using the IConfigureOptions interface to apply changes to a configuration as an alternative to the bridge pattern I have described in previous posts.
Hiding Secrets in appsettings.json - Using a Bridge in your ASP.Net Core Configuration (Part 4)
4 Apr 2018
ASP.NET Core
Configuration
Design Patterns
.NET Core
This is part 4 of a series where I have been looking at moving to a SOLID approach of implementing configuration binding in ASP.Net Core using a bridging class to remove the need for consumers of the configuration object to use IOptions
or IOptionsSnapshot
. In this post I move onto looking at injecting some functionality into the bridge class to decrypt settings and validate the settings read. Lastly I show registering the bridge class via multiple fine grained interfaces.
Creating a Bridge to your ASP.Net Core Configuration from your Controller or Razor Page (Part 3)
29 Mar 2018
ASP.NET Core
Configuration
Design Patterns
.NET Core
In this post, I move on from the lambda expression way of creating a bridge and look at splitting this out into an interface and classes.
Creating a Bridge to your ASP.Net Core Configuration from your Controller or Razor Page (Part 2)
26 Mar 2018
ASP.NET Core
Configuration
Design Patterns
.NET Core
In this post I looks at using an anonymous function to create a bridge between IOptionsSnapshot and T so that the controller does not need to be aware of the options pattern.
Creating a Bridge to your ASP.Net Core Configuration from your Controller or Razor Page (Part 1)
18 Mar 2018
ASP.NET Core
Configuration
Design Patterns
.NET Core
This post is intended to set the stage for a later post (though may become a series) I have planned in which I look at using the Bridge design pattern to break the immediate dependency on the IOptions pattern in a .Net Core application.
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)