frameworks
ASP.NET Core Articles, Tutorials & News
ASP.NET Core articles, tutorials, and news from the DotNetNews archive.
1533 articles Updated Page 2 of 62
Browse additional ASP.NET Core articles from the DotNetNews archive.
ASP.NET Core articles
Page 2 of 62
Newest first
-
How to Add API Versioning to an ASP.NET Core Web API
C# Corner Issue #571
Learn to add URL-based API versioning to an ASP.NET Core Web API using Asp.Versioning, create v1 and v2 controllers, and preserve compatibility for existing clients.
-
Building a Production Local RAG Agent in ASP.NET
Medium Issue #571
A fixed RAG pipeline always retrieves before calling the model. That works for simple Q&A, but it wastes tokens on questions the model…
-
How to Handle Graceful Shutdown in ASP.NET Core Background Services
C# Corner Issue #571
Learn how to implement graceful shutdown for ASP.NET Core background services using cancellation tokens, safe work handling, dependency injection scopes, and recovery strategies.
-
How to Add Rate Limiting to ASP.NET Core APIs
C# Corner Issue #570
Learn how to configure and apply ASP.NET Core rate limiting policies, choose limiter algorithms, and return HTTP 429 responses for excessive API requests.
-
How to Trace a Slow API Request with OpenTelemetry in .NET
C# Corner Issue #570
Configure OpenTelemetry tracing in an ASP.NET Core Web API to trace incoming requests, outgoing HTTP calls, and custom operations when investigating slow responses.
-
Clean Architecture in ASP.NET Core: What Belongs in Each Layer, and Why?
Medium Issue #570
Understanding the responsibilities of each layer, the direction of dependencies, and the engineering decisions behind maintainable .NET…
-
Understanding CancellationToken in C# and ASP.NET Core Web API
C# Corner Issue #570
Learn how to use CancellationToken in ASP.NET Core Web API to stop abandoned requests, cancel EF Core queries, and handle request cancellation efficiently.
-
How to Use the Transactional Outbox Pattern in .NET to Avoid Lost Messages
C# Corner Issue #570
Learn how to implement the Transactional Outbox Pattern in ASP.NET Core and Entity Framework Core to reliably save business data and publish events without losing messages.
-
How to Secure File Uploads in ASP.NET Core by Checking File Signatures
C# Corner Issue #569
Learn how to secure ASP.NET Core file uploads by validating file signatures, enforcing size limits, and safely storing uploaded files.
-
How to Mock External HTTP APIs in .NET Integration Tests
C# Corner - Nidhi Sharma Issue #569
Learn how to mock external HTTP APIs in ASP.NET Core integration tests by replacing HttpMessageHandler for typed HttpClient instances in WebApplicationFactory.
-
How to Use CancellationToken in ASP.NET Core Without Leaving Work Running
C# Corner Issue #569
Learn how to propagate CancellationToken through ASP.NET Core APIs, Entity Framework Core queries, and HTTP operations to stop work when requests are aborted.
-
RAG in ASP.NET Core (.NET 10): A Chat API That Remembers
codewithmukesh Issue #569
Build RAG in ASP.NET Core on .NET 10 with GoodMem: ingest docs, answer with citations, keep chat memory across restarts, and measure what a reranker adds.
-
How to Stream Large JSON Responses in ASP.NET Core Without Buffering
C# Corner - Nidhi Sharma Issue #568
Learn how to stream large JSON responses in ASP.NET Core with IAsyncEnumerable, System.Text.Json, and cancellation-aware Entity Framework Core queries.
-
Logging EF Core SQL Queries During Development
C# Corner - Riya Patel Issue #568
Learn how to log and inspect Entity Framework Core SQL queries in ASP.NET Core using logging categories and LogTo, while avoiding exposure of sensitive data.
-
How to Use ETags in ASP.NET Core to Prevent Users from Overwriting Each Other’s Changes
C# Corner Issue #568
Learn how to use HTTP ETags, If-Match headers, and EF Core rowversion tokens in ASP.NET Core APIs to detect concurrent edits and prevent lost updates.
-
Designing APIs for AI agents: your API has a new user
elmah.io Blog - .NET Technical tutorials/guides and new features - Ali Hamza Ansari Issue #568
AI agents are a new kind of API consumer: they call endpoints, retry requests, and chain multi-step workflows on their own. This post covers practical ASP.NET Core patterns for building agent-ready AP...
-
Preventing Duplicate Operations in ASP.NET Core APIs
C# Corner - Riya Patel Issue #567
Learn how to prevent duplicate ASP.NET Core API operations with idempotency keys, durable EF Core storage, request hashes, and database uniqueness constraints.
-
How to Return Large JSON Responses in ASP.NET Core Without Loading Everything into Memory
C# Corner Issue #567
Learn how to stream large JSON responses in ASP.NET Core with IAsyncEnumerable, Entity Framework Core, cancellation, and memory-conscious API design.
-
Keeping API Pagination Consistent While Records Change
C# Corner - Vivek Kumar Issue #567
Learn how record changes cause offset pagination duplicates and gaps, and implement stable cursor-based pagination in ASP.NET Core with Entity Framework Core.
-
A Birthday Is Not a Timestamp
Medium - Subhankar karmakar Issue #566
The Angular, ASP.NET Core, and SQL Server mistake that turns October 15 into October 14, and the design change that fixes it.
-
ASP.NET Core Output Caching vs. Response Caching: What's the Difference?
C# Corner - Nidhi Sharma Issue #566
Learn the differences between ASP.NET Core output caching and response caching, including HTTP cache rules, server-side policies, middleware setup, and when to use each.
-
Resolving Common Pitfalls in ASP.NET Core Hybrid Projects: APIs, HTML Redirects, and Decimal Parsing
C# Corner - Sardar Mudassar Ali Khan Issue #566
-
Secure File Uploads in ASP.NET Core: Validate File Signatures, Not Just Extensions
C# Corner - Ananya Desai Issue #566
Learn how to secure ASP.NET Core file uploads by validating extensions and file signatures, enforcing size limits, and safely storing uploaded files.
-
Verify Webhook Signatures and Reject Replayed Requests
C# Corner - Saurav Kumar Issue #566
Learn how to verify HMAC webhook signatures from raw request bodies and prevent replayed requests with timestamps, event IDs, and idempotent processing in ASP.NET Core.
-
ASP.NET Core Output Caching vs. Response Caching: Which One Should You Use?
C# Corner Issue #566
Compare ASP.NET Core Output Caching and Response Caching, including how they work, configuration, HTTP cache rules, and when to use each approach.