appfabric

AppFabric deep copy into cache


I'm using Windows Server AppFabric 1.0.4632 and when I put an object into the cache and get it back, it has nulls in place of the complex properties. How do I force a deep copy of some properties? (Preferably at class level (Attribute)).


Solution

  • AppFabric uses internally the NetDataContractSerializer, you can use the following guide for the deep copy: https://code.msdn.microsoft.com/windowsdesktop/Deep-Copy-NetDataContractSe-c57abdc0