Jason Kulatunga
Jason Kulatunga

Reputation: 5893

HttpContext Scope when creating Async Task

If I start an asynchronous task inside an MVC3 Controller action, and then return immediately, is the HttpContext scope until the next Garbage Collection call, or does it wait until the asynchronous task completes before it is garbage collected.

Upvotes: 1

Views: 479

Answers (1)

Remo Gloor
Remo Gloor

Reputation: 32725

The objects are Disposed (not garbage collected) at the end of the request.

Upvotes: 1

Related Questions