AppFabric serialization problem.

Posted by jandark on Stack Overflow See other posts from Stack Overflow or by jandark
Published on 2011-01-15T17:37:03Z Indexed on 2011/01/15 17:53 UTC
Read the original article Hit count: 178

Filed under:
|
|

I am trying cache a class instance with AppFabric but it return class instance with empty members. The reason is DataContract Attribute. My class is marked with [Serializable] and [DataContract(Name = "TestClass", Namespace = "CustomNameSpace.TestClass")] attributes.

Problem solving if I mark all properties with DataMember or remove DataContract attribute.

But I do not want to remove DataContract attributte because of other serialization needs (such as json or something else) Or I do not want to add DataMember attribute to other classes. (a lot of)

Do you have any idea to solve that problem ?

Thanks.

© Stack Overflow or respective owner

Related posts about caching

Related posts about serialization