Validate that your DI Container can be created in ASP.NET Core
How to validate your ASP.NET Core Dependency Injection container configuration to catch errors early, ensuring all dependencies can be resolved.
Steven Giesel is a Senior Software Engineer and Microsoft MVP with over 13 years of experience, specializing in .NET and modern backend development. He shares deep technical knowledge across topics such as C#, EF Core, RavenDB, distributed systems, and cloud-native architectures, and is an active speaker in the .NET community.
323 articles from this blog
How to validate your ASP.NET Core Dependency Injection container configuration to catch errors early, ensuring all dependencies can be resolved.
Analyzes the future of .NET Framework, estimating its support timeline based on Windows Server lifecycle and official Microsoft documentation.
Explains how to cache CORS preflight requests in .NET applications using the Access-Control-Max-Age header to improve performance.
Explains how to use DebuggerDisplayAttribute to add debugging capabilities to third-party .NET types you can't modify directly.
An open source maintainer discusses the importance of open source software, its widespread use, and challenges like the Log4Shell vulnerability and the left-pad incident.
A guide to solving JWT authentication for protected video and image assets in Angular applications, exploring multiple approaches.
Explores two new .NET 10 features: non-blocking BackgroundService startup and a numeric string comparer for natural sorting.
A proposal to add a dedicated LeftJoin operator to LINQ in .NET 10, simplifying a common database query pattern.
A humorous exploration of C# ValueTuple's compiler behavior, especially with large numbers of elements.
A critical analysis of the 'always use early returns' coding advice found on LinkedIn, examining readability and maintainability in C#/.NET.
Explains how to use Debug.Assert in C# to validate assumptions during development, highlighting differences from Trace.Assert.
A tutorial on creating an awaitable modal dialog component in Blazor using C# and TaskCompletionSource for cleaner asynchronous UI interactions.
Explains a performance issue with ToListAsync/ToArrayAsync in EF Core when querying large data columns and recommends using synchronous versions.
Performance comparison between ToArrayAsync and ToListAsync methods in Entity Framework 8, using benchmarks to analyze memory and speed.
Benchmarking performance of ASP.NET Minimal API vs classic Controllers in .NET 8 and 9 using BenchmarkDotNet.
Learn two Git tricks: quickly switch back to the previous branch and view the last 5 checked-out branches using reflog.
Explains how to use NuGet's Central Package Management feature to centrally manage package versions across multiple .NET projects.
Overview of xUnit v3 prerelease features, including executable test projects, migration steps, and new capabilities like cancellation tokens.
Explores alternatives to Swagger for API documentation in ASP.NET 9, including Swashbuckle, NSwag, and Scalar.
A guide to centralizing CancellationToken management in ASP.NET using a middleware service to reduce repetitive code.