E
Eduardo Pavinato Klein
Hi.
I've constructed a class in the singleton model, like this:
class MyClass
{
private MyClass instance;
public MyClass GetInstance()
{
if (this.instance == null)
this.instance = new MyClass();
return this.instance;
}
private MyClass () { ... }
}
It seems that in ASP.NET my instance belongs to the application, because
each session gets the same instance.
What to do in order to each session has its own instance?
Thanks,
Eduardo
I've constructed a class in the singleton model, like this:
class MyClass
{
private MyClass instance;
public MyClass GetInstance()
{
if (this.instance == null)
this.instance = new MyClass();
return this.instance;
}
private MyClass () { ... }
}
It seems that in ASP.NET my instance belongs to the application, because
each session gets the same instance.
What to do in order to each session has its own instance?
Thanks,
Eduardo