J
JF
I found a solution that i'm thinking quiet good :
Every time i need to access to an Application object, i use a wrapper class
Then i have something like this:
WSApplication.Objects.TempZone
In the Application_Start event (global.asax), I initialise a static member of my wrapper class:
private static HttpContext Context;
=> WSApplication.Objects.Init();
Then when i call a static ascessor of the class i m doing something like that:
public TempZone TempZone
{
get
{
return (TempZone)Context.Application["TempZone"];
}
}
With this solution all the threads can access easily to the application object
Every time i need to access to an Application object, i use a wrapper class
Then i have something like this:
WSApplication.Objects.TempZone
In the Application_Start event (global.asax), I initialise a static member of my wrapper class:
private static HttpContext Context;
=> WSApplication.Objects.Init();
Then when i call a static ascessor of the class i m doing something like that:
public TempZone TempZone
{
get
{
return (TempZone)Context.Application["TempZone"];
}
}
With this solution all the threads can access easily to the application object