Make the guts of LocalProxy.SetApplicationContext re-usable? #3591
-
I'm pondering about how the actual meat of the method Scenario - in memory cache of read-only CSLA objects:
Currently I accomplish this by serializing/deserializing the objects to/from byte arrays. That operation of serialize/deserialize has the side-effect swapping out the I'm wondering if we can move the "do it" part of the
Obviously it's on me to make sure that the swap in my business objects is allowed and valid from a security perspective |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Wouldn't this cause a concurrency issue, where multiple users could have access to the object graph at the same time, potentially with the context switching out from underneath them as they interact with the graph? I think the best way to cache an object graph is to cache the serialized byte array, and deserialize it on request for each user. |
Beta Was this translation helpful? Give feedback.
Wouldn't this cause a concurrency issue, where multiple users could have access to the object graph at the same time, potentially with the context switching out from underneath them as they interact with the graph?
I think the best way to cache an object graph is to cache the serialized byte array, and deserialize it on request for each user.