MvcReportViewer icon indicating copy to clipboard operation
MvcReportViewer copied to clipboard

Thread Safe

Open tristandostaler opened this issue 8 years ago • 0 comments

The project shouldn't call anything of the website context directly like "HttpContext.Current.Response". The DLL should be completly independant. If there is a need for the httpContext, it should be received as a parameter.

In a project I am doind right now, the report creation takes a really long time and we had a hard time to put the report creation in a separated thread. It would have been done way more easily if there was no access to "HttpContext.Current" which depends on "Thread.Current" hence not working on a different thread.

tristandostaler avatar May 05 '17 19:05 tristandostaler