Hi, I’m trying to understand if it makes sense to implemented such a a operation implementation:
- The operation is bit long task so I wanted to spin a new thread and return the control to the client “immediately”
- The task requires the httpcontext
I tried to wrap the implementation in a Task.Factory.StartNew , passing the httpcontext. unfortunately the httpcontext. is reset (httpcontext.items is emptied) after the http call is over event if the spinned thread is stlil working (which males sense actually).
Is there anyway I could achieve what I need … or I’ll have to give the responsability to the client to do an async http request ?