Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 832845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:25:33+00:00 2026-05-15T04:25:33+00:00

The MSDN documentation for using an asynchronous controller mentions choosing an asynchronous controller when

  • 0

The MSDN documentation for using an asynchronous controller mentions choosing an asynchronous controller when you want to provide a way for users to cancel requests.

I couldn’t find any documentation related to actually allowing users to cancel asynchronous requests, however. Is there a way to indicate to ASP.NET and/or the ASP.NET MVC framework that a request should be canceled?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:25:34+00:00Added an answer on May 15, 2026 at 4:25 am

    If the asynchronous API that you called provides a way to cancel the request (either via .NET 4’s CancellationToken class or via a CancelAsync method), you must call that to cancel whatever asynchronous operations are in flight. Otherwise, call AsyncManager.Finish (via the controller’s AsyncManager property) to force the MVC framework to call your XxCompleted method immediately. Note that AsyncManager.Finish is really intended only if you need to bail out of requests that you have no other way of canceling (such as calling BeginXx / EndXx without a CancellationToken) and won’t always work in other scenarios.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently using Microsoft's chart control - the MSDN documentation for it is
I'm using ICommandText::GetCommandText method. According to the MSDN documentation ( http://msdn.microsoft.com/en-us/library/ms709825(v=VS.85).aspx ) I need
In many places in msdn documentation you can find references to App_Data directory. For
I am using a FileSystemWatcher to monitor changes to files. MSDN documentation says that
I'm having a bit of trouble de-ciphering the msdn documentation. I want to call
I'm using HtmlPage.RegisterCreateableType method to call some C# code from javascript. In MSDN documentation
I just made a very simple test app using documentation from MSDN. All I
The MSDN documentation on WinHttpCrackurl makes a point of saying it runs synchronously. But,
According to MSDN Documentation for partial classes : Partial methods are implicitly private So
While browsing MSDN documentation, you may come across this gem: TextBox.Watermark. Awesome! I've been

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.