iis - In C# what if the app pool is reset before the response of an async/await call returns? -


i have async code running in web api, therefore managed iis. since app pool prone getting restarted, happen if make async call, app pool restarted before response comes async call?

i'm assuming that, since memory of app pool wiped, response never processed. correct? if so, c# have kind of mechanism can use make sure response still processed, if app pool has been reset?

if await chain awaited way controller not reset app pool on you, acts same other request has not completed yet , keep app pool alive long have synchronous request.

if talking "fire , forget" task not block controller completing need use kind of library offload work off of iis or have work re-tried if canceled. use hangfire.io, here a list of other options fire , forget tasks.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -