Give an example of a duplex service

 Posted by Pgayath on 9/27/2012 | Category: WCF Interview questions | Views: 3558 | Points: 40
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 

Comments or Responses

Login to post response