Can I compose a WCF callback contract out of multiple interfaces?

Posted by mafutrct on Stack Overflow See other posts from Stack Overflow or by mafutrct
Published on 2010-03-23T21:24:20Z Indexed on 2010/03/23 22:53 UTC
Read the original article Hit count: 211

Filed under:
|

Followup question to http://stackoverflow.com/questions/2502930/how-can-i-compose-a-wcf-contract-out-of-multiple-interfaces.

I tried to merge multiple callback interfaces in a single interface. This yields an InvalidOperationException claiming that the final interface contains no operations. Technically, this is true, however, the inherited interfaces do contain operations.

How can I fix this? Or is this a limitation of WCF?

Edit:

interface A { [OperationContract]void X(); }
interface B { [OperationContract]void Y(); }

interface C: A, B {} // this is the public callback contract

© Stack Overflow or respective owner

Related posts about .NET

Related posts about wcf