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.
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.