服务器代码-
[ServiceContract(CallbackContract = typeof(CallbackContract))]
public interface ServiceContract
{
[OperationContract(IsOneWay=true)]
void Register();//Uses CallBackContract
[OperationContract]
int Get();//Does Not use callback
}
如果一个类仅使用 Get()方法,是否需要实现CallbackContract?