G
GS
Hi,
I'd rather start from a good design and go from there so would be greatfull
for any input.
I have a simple ASP.NET application and would like to make solution elegant.
I store settings in web.config file and I would like to have class in my
application which will hold application level objects.
Some methods of the class will be executed in different threads and some
properties are shared among threads and static in nature.
So what I want to do is to initialize and object in global.asax and assign
those global variables there. My question does this sound a good design?
Do I store this object of this class in Application variable? How this will
survive multithreading?
What would be the sample code I have to put in Global.asax to initialize
this object?
I'd rather start from a good design and go from there so would be greatfull
for any input.
I have a simple ASP.NET application and would like to make solution elegant.
I store settings in web.config file and I would like to have class in my
application which will hold application level objects.
Some methods of the class will be executed in different threads and some
properties are shared among threads and static in nature.
So what I want to do is to initialize and object in global.asax and assign
those global variables there. My question does this sound a good design?
Do I store this object of this class in Application variable? How this will
survive multithreading?
What would be the sample code I have to put in Global.asax to initialize
this object?