How can I compose a WCF contract out of multiple interfaces?
- by mafutrct
I've got multiple interfaces. All of them should be inherited and exposed by a single contract interface.
interface A { void X(); }
interface B { void Y(); }
interface C: A, B {} // this is the public contract
How is this possible? I can't add ServiceContract to A and B because that would lead to multiple endpoints. And I don't want to new-override every method in C.