AppFabric serialization problem.
- by jandark
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.