Logging, HTTP, and EF Core fixes
A varied .NET lineup on Serilog, HttpClient 403s, EF Core query filters, security with private endpoints, testing, generics, and AI agents.
Jasen's top three picks
- 1 .NET CLI Shebangs and Argument Parsing
nodogmablog.bryanhogan.net
A tiny CLI shebang detail, but a big quality-of-life win if you like running C# scripts directly.
- 2 Structured Logging with Serilog in ASP.NET
benedictodoh.medium.com
Serilog is still one of the best ways to make ASP.NET logs useful instead of noisy.
- 3 Why My .NET HttpClient Kept Getting 403 Forbidden Until I Forced HTTP/1.1
medium.com
This HttpClient 403 tale is classic production pain: the fix was a protocol mismatch, not the API.
Editor's note
I curated another mixed issue here, with practical troubleshooting and architecture work side by side. The HttpClient 403 story is a good reminder that protocol details can matter, and the EF Core query filters piece is useful for anyone enforcing tenant or data rules. There’s also a nice logging refresher with Serilog and a lively look at building an LLM in C#.
Today's articles
.NET CLI Shebangs and Argument Parsing
nodogmablog.bryanhogan.net
I’ve been using the dotnet run app.cs CLI applications for a little while. Until now, I had no problem with arguments passed in, but today I added a -v option to my application to print out the versio...
Read articleStructured Logging with Serilog in ASP.NET
benedictodoh.medium.com
Serilog is a powerful, flexible, and easy-to-use logging library for .NET that enables developers to capture structured, queryable logs…
Topics: ASP.NET Core Serilog
Read articleWhy My .NET HttpClient Kept Getting 403 Forbidden Until I Forced HTTP/1.1
medium.com
Browsers worked. The API endpoint worked in Postman. A basic .NET client did not.
Read articleHow to build an LLM in C#
medium.com
I’m one of these late starters and slow learners but eventually I get obsessed about things. I’m bored of prompting someone else’s models… Continue reading on Data Science Collective »
Read articleHow I Built a 'Journalist' AI Agent in VS Code to Replace Me
visualstudiomagazine.com
Having long ago seen the handwriting on the wall for the journalism profession with the debut of GenAI, I decided to just cut to the chase and build my replacement now.
Topics: OpenAI Visual Studio Code
Read articleOn .NET Live - Imposter: A Mocking Library
youtube.com
️ Featuring: Bitchiko Tchelidze (https://github.com/themidnightgospel/Imposter), Maira Wenzel, Cam Soper, Katie Savage https://github.com/themidnightgospel/Imposter
Topics: .NET Core Unit Testing
Read articleStop Using Patterns You Don’t Understand — Especially in .NET
medium.com
The uncomfortable truth: most production issues aren’t caused by lack of patterns… but misuse of them.
Topics: Design Patterns Solid Principles
Read articleHow to Use Generics in C# to Write Reusable and Type-Safe Code
c-sharpcorner.com
Master C# generics! Learn how to write reusable, type-safe code, avoid duplication, and boost performance. Explore generic classes, methods, collections, and constraints.
Topics: C# Performance
Read articleThe Classic Distributed System Dilemma: Database vs Kafka — What Comes First?
medium.com
When building backend systems in a microservices architecture, a very common and practical problem appears during flows like user…
Topics: Design Patterns Kafka
Read articleFrom QA Hand-Offs to Test-First .NET: The C# Developer’s Testing Fundamentals
medium.com
If you’ve written C# for more than a few months, you’ve already met the QA wall.
Topics: Test-Driven Development Unit Testing
Read articleMost C# devs have been burned by deferred execution at least once.
medium.com
Usually at 2am. Usually in production.
Topics: C# Performance
Read articleMy Journey of Completing C# Certification from freeCodeCamp
medium.com
Recently, I achieved an important milestone in my development journey — I successfully completed the Foundational C# with Microsoft…
Topics: C#
Read articleBeginner's Guide: Authentication & Authorization in Modern Applications
c-sharpcorner.com
Unlock the secrets of secure apps! This beginner's guide demystifies authentication and authorization, explaining how your data is protected when you log in and use modern applications. Learn the fund...
Topics: Authentication Authorization
Read articleWhy your Entity Framework Core app needs query filters
roundthecode.com
Discover how EF Core query filters enforce global rules, simplify multitenancy, and clean up queries to stop sensitive data leaking into production. The page Why your Entity Framework Core app needs q...
Read articleSecuring Back-end App Service Web Apps with Private Endpoints
markheath.net
Service Endpoints (2019) Private Endpoints (2026) Scope Entire App Service Your specific app only Data exfiltration protection No Yes Public access Still reachable (blocked by rules) Blocked (access r...
Read article