Skip to content

Thread Safe #209

@tristandostaler

Description

@tristandostaler

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions