Is it possible to pause and resume a Asp.net REST API Call?

Hunaid Hussain 1 Reputation point
2023-01-06T11:57:13.627+00:00

Hi,

Is it possible to pause and resume a Asp.net REST API Call?

I have a UI where in, there are maximum 5 jobs are listed.

There are two options, either I can run each job manually by clicking RUN button (OR) I can click on Run All Job Button to run all jobs.

In Manual Clicking Run Button, we want to achieve following:

  1. Click on Run button
  2. Pause the API Call
  3. Resume the API Call
  4. Cancel the API Call

In Click on Run All Button, we want to achieve the following:

  1. Once the first job get completed it should automatically run the next job in serial order
  2. Pause the API Call
  3. Resume the API Call
  4. Cancel the API Call
Developer technologies ASP.NET ASP.NET API
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-01-06T17:20:08.547+00:00

    api calls are request/response. you can not pause.

    if you need this feature, you need to build a scheduler to run the jobs in the background. then the rest api is an api to this scheduler, start, pause, resume, cancel.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.