Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Major mixup in two ASP.NET transactions
Message
From
04/09/2006 12:48:29
 
 
To
04/09/2006 12:22:46
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01150471
Message ID:
01150734
Views:
55
Hi,

>>I think to do that you'd need to make a 'deep-copy' (cloning just gives a shallow copy). It's possible to do that by serializing an object and deserializing to a new object - but all contained objects also need to be serializable so, for a complex object, it can easily become too complicated and time consuming.
>>
>>Did you consider the suggestion of using a class scoped to the request?
>
>Not yet, I would prefer to wait until the last minute, assuming no other way. I also need to avoid making that too complicated as I am something workable now.
>
>Rick mentioned that I could scope the properties with static. What do you think about that?

The real gain would be in using static constructors to initialize the Framework. It would certainly help with handling the global level properties - static constructors would, as Rick says, only run once (the very first time the framework is instantiated) - subseguent instantiations would have those properties already set - and that might reduce the initialization overhead enough to make using new Framework objects on each page hit acceptable ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform