Re: Can I store a C# Class Instance to the Server Cache?



"Joseph Geretz" <jgeretz@xxxxxxxxxx> wrote in message
news:eO58J4%23THHA.4744@xxxxxxxxxxxxxxxxxxxxxxx
Of course, I can store a C# class instance to the Server Cache
(this.Context.Cache). I've tried it. My question is, will this destroy the
scalability of my application?

My background is VB6. With VB6 we learned very early on that you do *NOT*
store VB6 class instances on the server. That is because a VB6 class can
only be accessed on the thread on which it is created (thread affinity).

This is not a problem with .NET. You have to make sure the class is
serializable.

John


.


Loading