🧵 New: Modernizing .NET – Part 12
Use HttpClientFactory in legacy background threads with the SharedContext pattern.
Thread‑safe, DI‑friendly, minimal refactoring.
📖 Read → https://medium.com/@michael.kopt/19c66938fedf
#DotNet #DotNetCore #DotNet8 #DotNet9 #DotNet10 #ASPNet #ASPNetCore #CSharp #LegacyCode #HttpClientFactory #DependencyInjection #BackgroundThreads

🪢Modernizing .NET — Part 12: Managing Dependency Injection in Background Threads with SharedContext
Legacy background threads don’t support DI — this post introduces the SharedContext pattern to bridge the gap
Medium
.NET 9 Networking Improvements - .NET Blog
Introducing new networking features in .NET 9 including HTTP space, HttpClientFactory, security and more!
.NET Blog