wcf如何判断客户端连接服务器是否成功

2024-12-30 04:34:33
推荐回答(1个)
回答1:

host = new DataServiceHost(typeof(ClientDataService), new Uri[] { });
host.Opened += delegate { Console.WriteLine("connnectioned."); };