About 16,600 results
Open links in new tab
  1. Using CancellationTokens in ASP.NET Core minimal APIs

    Aug 23, 2022 · In this post I'll show how you can use CancellationTokens in your minimal API handlers to stop execution when a user cancels a request from their browser

  2. Minimal APIs quick reference | Microsoft Learn

    Dec 8, 2025 · Customize error responses from Minimal API validation logic with an IProblemDetailsService implementation. Register this service in your application's service collection …

  3. Using CancellationTokens in .NET Minimal APIs: Boost Performance …

    Aug 15, 2025 · In this article, we’ll explore how CancellationTokens work and show you how to integrate them into a .NET Minimal API to improve overall performance and responsiveness.

  4. Minimal api's and cancellation tokens - Always Developing

    Sep 30, 2022 · A CancellationToken can be passed into a minimal api endpoint to be used to cancel processing executed by the endpoint - the cancellation token will automatically be marked as …

  5. Understanding Cancellation Tokens in ASP.NET Core: A Guide to …

    Oct 13, 2024 · Let’s explore how to implement cancellation tokens in a simple scenario using ASP.NET Core Minimal APIs, where we simulate a long-running operation and handle client-triggered …

  6. Adding a CancellationToken to minimal API endpoints

    Dec 4, 2023 · I've got a SQL server table with 32 items, it does not grow. Along with a basic stored procedure which selects them. Then there is a minimal API around the stored proc which just queries …

  7. How to Use Cancellation Tokens in ASP.NET Core

    Feb 3, 2025 · Using cancellation tokens effectively ensures that your application remains responsive and efficient, especially when handling user-driven cancellations or timeouts.

  8. Easy Guide to Cancellation Tokens in .NET

    Jan 31, 2024 · Enter Minimal APIs in ASP.NET Core, a lightweight and streamlined approach to building web applications. In this detailed blog, we'll explore the concept of Minimal APIs, understand why …

  9. using-cancellationtokens-in-asp-net-core-minimal-apis/ - GitHub

    Aug 23, 2022 · In this post I'll show how you can use CancellationTokens in your minimal API handlers to stop execution when a user cancels a request from their browser https://andrewlock.net/using …

  10. Cancellation Tokens in ASP.NET APIs - Know Your Toolset

    May 4, 2023 · The CancellationToken parameter is something that is not passed by a caller directly but rather set by the browser or caller to enable the API to know if a request has been canceled.