Part 16 of Modernizing .NET is out! 🛡️

Today we’re ditching the obsolete BinaryFormatter in favor of the fast and secure protobuf-net.

🚀 7x faster 📉 3x smaller ✅ Fully safe for modern .NET

https://medium.com/@michael.kopt/%EF%B8%8F-modernizing-net-part-16-replacing-binaryformatter-with-protobuf-net-for-speed-and-security-f5cc5db8055a
#dotnet #dotnetcore #dotnet8 #dotnet9 #dotnet10 #aspnet #aspnetcore #csharp #programming #serialization #protobuf

🛡️ Modernizing .NET — Part 16: Replacing BinaryFormatter with protobuf-net for Speed and Security

Learn how to eliminate the risks of BinaryFormatter by migrating to protobuf-net. Boost performance by 7x and reduce size by 3x.

Medium

🗂️ New: Modernizing .NET – Part 15
JSON fails with circular objects. Protobuf-net can’t fix recursive graphs.
Here’s a custom ASP.NET Core Session Store that can.

Read → https://medium.com/@michael.kopt/%EF%B8%8F-custom-session-store-for-complex-objects-in-asp-net-core-1349b680ce12
#DotNet #DotNetCore #DotNet8 #DotNet9 #DotNet10 #ASPNet #ASPNetCore #CSharp #Middleware #SessionState

🗂️ Custom Session Store for Complex Objects in ASP.NET Core

ASP.NET Core’s default session fails with complex objects. This post shows how to store them safely in memory.

Medium

🧩 New: Modernizing .NET – Part 14
WebHost still works, but WebApplication is better.
Here’s how to migrate your ASP.NET Core app to the modern hosting model.

Read → https://medium.com/@michael.kopt/modernizing-net-part-14-migrating-from-webhost-to-webapplication-in-asp-net-core-612a7a8e1b88
#DotNet #DotNetCore #DotNet8 #DotNet9 #DotNet10 #ASPNet #ASPNetCore #CSharp #Middleware

🧩 Modernizing .NET — Part 14: Migrating from WebHost to WebApplication in ASP.NET Core

WebHost was common in early ASP.NET Core apps. This post shows how to migrate to the modern WebApplication model.

Medium

🧵 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

📡 New post: Modernizing .NET – Part 11
Migrate from WebClient and RestSharp to HttpClientFactory.
Full code, DI setup, and performance boost.

Read → https://medium.com/@michael.kopt/c3a74091ef19
#DotNet #DotNetCore #DotNet8 #DotNet9 #DotNet10 #ASPNet #ASPNetCore #CSharp #Linux #RestShart #WebClient #DepedencyInjection

📡 Modernizing .NET — Part 11 Migrating WebClient and RestSharp to HttpClientFactory

This post gives a production‑ready migration path for replacing WebClient and RestSharp with HttpClient backed by IHttpClientFactory. It…

Medium
📊 New post: Modernizing .NET – Part 10
Replace OleDB with ExcelDataReader in .NET Core.
Setup, formatting, exporting, performance tips — all covered.
Read → https://medium.com/@michael.kopt/modernizing-net-part-10-replacing-oledb-excel-reading-with-exceldatareader-a2cdae1e2cb8
#DotNet #DotNetCore #DotNet8 #DotNet9 #DotNet10 #ASPNet #ASPNetCore #Excel #OLEDB
📊 Modernizing .NET — Part 10: Replacing OleDB Excel Reading with ExcelDataReader

Legacy .NET apps rely on OleDB to read Excel files — but it doesn’t work in .NET Core. This guide shows how to migrate to ExcelDataReader

Medium
🦊 New post: Modernizing .NET – Part 9
SAML SSO migration to ITfoxtec in .NET Core.
Config, response handling, logging — all covered.
Read it → https://medium.com/@michael.kopt/modernizing-net-part-9-migrating-saml-sso-to-itfoxtec-44133b003702
#DotNet #SAML #SSO #ITfoxtec #CSharp #Identity #ASPNet #ASPNetCore #Linux #DotNetCore #DotNet8 #DotNet9 #DotNet10

Keycloak + .NET 8 + Angular: Giải pháp auth hiện đại, tập trung vào logic kinh doanh, quản lý token, MFA, JWT, Auth Code + PKCE. Người dùng hỏi: có đáng đầu tư không? Vấn đề refresh token, Angular guards? Bạn có chọn lại so với Identity hay cloud auth? #Keycloak #DotNet8 #Angular #Authentication #BảoMật #LậpTrình #DevOps

https://www.reddit.com/r/programming/comments/1qgax0e/anyone_here_using_keycloak_with_net_8_angular/

Keycloak đang là giải pháp xác thực hot cho .NET 8 + Angular SPA. Bài viết chi tiết cách tích hợp Identity Provider, dùng JWT, Auth Code + PKCE, giảm gánh nặng auth trong app. Cộng đồng chia sẻ: thiết lập có khó không? Vấn đề token refresh, Angular guards ra sao? Bạn sẽ chọn Keycloak hay giải pháp built‑in? #Keycloak #dotnet8 #Angular #XácThực #BảoMật #IdentityProvider

https://www.reddit.com/r/programming/comments/1qgax0e/anyone_here_using_keycloak_with_net_8_angular/

.NET and .NET Framework January 2026 servicing releases updates - .NET Blog

A recap of the latest servicing updates for .NET and .NET Framework for January 2026.

.NET Blog