0

Is it possible to have have asynchronous calls to a RESTful API hosted under asp.net?

I have a long running process. I want to trigger it to start via an http GET request and then check on its progress periodically. How do I do this using the new C#5 async / await syntax?

I have a detailed example in this question:

1
  • 1
    How do you intend to report progress from your API? Even if the call is asynchronous from the client you need to implement progress reporting at your API level. Commented Jun 15, 2012 at 8:35

1 Answer 1

0

I think you don't need to use await or async. Maybe you can start a new thread to run the long time task, and return a task id to the client immediately. And the client use this id to check the progress of the task.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.