How can I compose a WCF contract out of multiple interfaces?
Posted
by mafutrct
on Stack Overflow
See other posts from Stack Overflow
or by mafutrct
Published on 2010-03-23T19:22:43Z
Indexed on
2010/03/23
19:23 UTC
Read the original article
Hit count: 275
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.
© Stack Overflow or respective owner