ilich / MvcReportViewer

ASP.NET MVC Html Helpers for ReportViewer Control.
MIT License
280 stars 131 forks source link

Thread Safe #209

Open tristandostaler opened 7 years ago

tristandostaler commented 7 years ago

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.