Thoughts on ServicedComponents and the Construct() method? - 11-17-2004 , 11:08 AM
I'm creating a serviced component in C#, and was thinking about calling
the Construct() method to cache a string in a local variable, for later use.
In VB6 I had it burned into me that caching values in a COM+ component
wasn't maybe the best idea, given how COM+ and JIT worked. I was told that
with JIT you're not guaranteed to use the same component between method
calls, so trying to hold state in a variable is asking for trouble.
Was that line of reasoning correct, and if so, does it hold in .Net as
well, and should I avoid caching a string in the Construct method because of
|Thread Tools||Search this Thread|