.NET provides various tools to ensure a timely response from a REST endpoint
https://www.damirscorner.com/blog/posts/20250725-LimitWebApiResponseTime.html

.NET provides various tools to ensure a timely response from a REST endpoint
https://www.damirscorner.com/blog/posts/20250725-LimitWebApiResponseTime.html
Triển khai xác thực JWT trong ASP.NET Core: hướng dẫn từng bước. Xây dựng API an toàn với JWT, bao gồm tạo token, xác thực và bảo vệ endpoint. #JWT #ASPNetCore #authentication #xacthuc #laptrinh
Today’s architecture win:
• Killed explicit audit params in *every* repository
• New `IAuditLogContext` unified audit metadata
• Tests now 42% faster to write
Why? Because infrastructure should *enable*—not obstruct—domain work.
\#DeveloperJoy \#AspNetCore
Global #ErrorHandling in #ASPNETCore: From Middleware to Modern Handlers
Level-up your Blazor skills at #techbash. Register for 3 or 4 days & join us at the Kalahari in the Poconos Nov 4-7th.
All sessions at https://techbash.com/sessions
Working on something cool:
Swiss swiyu implemented using Aspire and .NET Core
https://swiyuaspiremgmt.delightfulsky-453308fc.switzerlandnorth.azurecontainerapps.io/
I plan to publish the code next month.
Blogged: Implement ASP.NET Core OpenID Connect with Keycloak to implement Level of Authentication (LoA) requirements
From a couple of weeks ago: "How I've been building APIs and microservices lately (feat. C# & .NET)"
In which I go through how I've been structuring projects, some of the main patterns used, designing APIs, testing, and some other random tidbits.
Hot take, but managing middleware order in #aspnetcore is busted.
It would be nice if there were less granularity and more “when you add this, it's going to register in the right place every time”.
Case in point:
Spent the day figuring out how best to manage frontend dependencies in an #aspnetcore application, only to find a post I wrote a few years ago.
If you're wondering, the answer is Parcel. Use parcel.
Hey there
I guess I'll start posting here too.
New blog post:
An Auto-Update Partial Updater with Alpine.js and HTMX
How I built a simple update control which uses HTMX and Alpine to call to an ASP.NET Core action to update an element at regular intervals.
https://www.mostlylucid.net/blog/autorefreshwithalpineandhtmx
#htmx #AlpineJS #aspnetcore
Blogged: Going beyond singleton, scoped, and transient lifetimes—tenant, pooled, and drifter
https://andrewlock.net/going-beyond-singleton-scoped-and-transient-lifetimes/
In this post I investigate some 'experimental' dependency injection scopes that provide additional features over Singleton, Scoped, and Transient
Based on the discussion by @khalidabuhakmeh @maartenballiauw and @cwoodruff on @breakpointshow!
I wrote a Minimal API endpoint that you can drop into your #aspnetcore applications to quickly see the registered dependencies and their lifetime scopes.
Should help when you're scratching your head as to why that dependency isn't getting resolved. #dotnet
https://gist.github.com/khalidabuhakmeh/066fa8b2ced6f85424c16146ecb7b55b
I published a Server-Sent Events demo using the latest #dotnet 10 SDK, implemented with #aspnetcore, and also tried out the #OSS library Injectio for source-generated dependency injection.
Try it out.
Blogged: NetEscapades.AspNetCore.SecurityHeaders 1.0.0 has been released
https://andrewlock.net/netescapades-aspnetcore-securityheaders-1-0-0-released/
In this post I describe the recent major changes to NetEscapades.AspNetCore.SecurityHeaders, a NuGet package for adding security headers to your apps
Implemented a Fast Food system with #dotnet 10 and the new Server-Sent events support in #aspnetcore Minimal APIs
Server-Sent Events in #dotnet 10 preview 3 is pretty cool add for #aspnetcore developers.
If you've ever wanted to build a stock-ticker app, this is the way to do it.
An ASP.NET Core Web API of my authorship to access and manipulate project data using EF Core, and JWT on a PostgreSQL or SQL Server database.