I am trying to extend a ServiceContract with a callback contract attribute. IProcessSubDataDuplex is generated by a code generator so I need to extend that to integrate CallbackContract attribute. But IProcessDataDuplex does not implement any of the ServiceContract attributes. Is there a workaround for this?
[ServiceContract(CallbackContract = typeof(IProcessDataDuplexCallBack))]
public interface IProcessDataDuplex : IProcessSubDataDuplex
{
}
[ServiceContract(Namespace = "http://www.example.com/", Name = "BeaconMonitorServiceContract", ProtectionLevel = ProtectionLevel.Sign)]
public interface IProcessSubDataDuplex
{
[OperationContract(IsOneWay = true)]
void ProcessData(string rawData);
}