Share via

Return response before other process

diego gutierrez 161 Reputation points
2021-08-02T20:19:10.35+00:00

Hi.

I am working with a dot net core web api which calls several web services.

Once the first web service responses I have to return the response inmediately to the caller and the remaining calls must be executed in a background process.

How can I send the response to the caller before other process? When I call the "return command" it returns the response but inmediately stop the process.

Thanks in advance.

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

0 comments No comments

Answer accepted by question author

Viorel 127K Reputation points
2021-08-03T05:11:05.78+00:00

Maybe create a Thread or Task and start it explicitly before return command.

What kind of background process are you creating?

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

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