I'm using WCF & Redis as caching layer, but unfortunately both WCF and the driver I used, are looking for the DataContractAttribute
& DataMemberAttribute
- and I want to hide some fields from WCF (sensitive information) but they should get serialized down to Redis (Uses StackService.JsonSerializer).
I want to achieve this without writing 2 different classes and want to switch between them at runtime, but I'm not sure if it's possible or not.
Thanks!