data-contracts

How do you configure WCF known types programmatically?

My client/server application is using WCF for communication, which has been great. However one shortcoming of the current architecture is that I must use known type configuration for certain transmitted types. I'm using an in-house Pub/Sub mechanism and this requirement is unavoidable. The problem is that it's easy to forget to add th...

Sharing Collection Data Contracts

I have some WCF services and have separated out the data contracts for these services into their own assembly. I then have a client of the services that references the data contracts assembly. I have turned on the option to Reuse types in referenced assemblies. This works, but not for collections. The proxy generator instead generates i...