[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); }
[ServiceContract] public interface IService1 { [OperationContract] void Employee(string value); }