Answer: [ServiceContract(SessionMode=SessionMode.Required,
CallbackContract=typeof(IRespondBackCallback))]
public interface ICalculatorDuplex
{
[OperationContract(IsOneWay = true)]
void FunctionClientCanCall();
}
public interface IRespondBackCallback
{
[OperationContract(IsOneWay = true)]
void FunctionServiceCanCall(double result);
}
Asked In: Many Interviews |
Alert Moderator