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 the known type, and if you do, WCF fails silently with few clues as to what's going wrong. In my application, I know the set of types that are going to be sent. I would like to perform the configuration programmatically, rather than declaratively through the App