Why I Switched to Primary Constructors for DI in C#
A C# developer explains why they switched to primary constructors for dependency injection, highlighting boilerplate reduction and a key pitfall.
A C# developer explains why they switched to primary constructors for dependency injection, highlighting boilerplate reduction and a key pitfall.
Explains why FluentValidation upgrade past 11.4 broke a gRPC validation package and how the author fixed it.
Exploring the Microsoft.Extensions.Options.Contextual package for dynamically configuring .NET options based on context.
Explains how to implement the Strategy design pattern using .NET's built-in Dependency Injection container, including keyed services.
Explores using cached ColdFusion components as scoped proxies for request-specific state, detailing implementation within a DI/IoC context.
A guide to implementing Dependency Injection in .NET 10 Isolated Azure Durable Functions using the TaskEntity<T> base class.
Explores various tenant identification techniques for multitenant ASP.NET Core applications, including query strings, routes, and HTTP headers.
A historical overview of Microsoft's .NET dependency resolution APIs, from IServiceProvider to ASP.NET frameworks like MVC, Web API, and SignalR.
Explores extending AutoMapper for automatic type mapping and dependency injection into Profile classes and value resolvers.
A guide to creating and implementing Service Objects within the CFWheels framework to bridge the gap between Models and Controllers.
Explains the difference between OnlyWhenStatic and OnlyWhenDynamic conditions for controlling target execution in Nuke, a C# build automation framework.
How to validate your ASP.NET Core Dependency Injection container configuration to catch errors early, ensuring all dependencies can be resolved.
Explores PHP 8.4's new Lazy Objects feature and how it can be used with Dependency Injection to improve application performance.
A guide to centralizing CancellationToken management in ASP.NET using a middleware service to reduce repetitive code.
Explains how to use the ActivatorUtilitiesConstructor attribute in .NET to control which constructor is selected during dependency injection.
Explains tagged singletons in dependency injection, allowing multiple singleton instances of the same class distinguished by tags for different contexts.
Explains how to use .NET 8's new keyed services feature for dependency injection when a single interface has multiple implementations.
Explains how to implement the Decorator design pattern using .NET's Dependency Injection to add cross-cutting concerns like logging or caching.
Learn the basics of Dependency Injection in Swift, covering constructor and property injection with practical code examples.
Explains how C# 12's new primary constructor feature reduces boilerplate code, especially in Dependency Injection scenarios.