diff -r f19b04646b6a -r 4c416d2878dd Client/Client.cs --- a/Client/Client.cs Fri Aug 15 11:11:17 2014 +0200 +++ b/Client/Client.cs Fri Aug 15 13:26:38 2014 +0200 @@ -33,7 +33,7 @@ } - public void OnServerClosing() + public void OnCloseOrder() { //Debug.Assert(Thread.CurrentThread.IsThreadPoolThread); //Trace.WriteLine("Callback thread = " + Thread.CurrentThread.ManagedThreadId); @@ -64,16 +64,10 @@ : base(callbackInstance, new NetTcpBinding(SecurityMode.None, true), new EndpointAddress("net.tcp://localhost:8001/DisplayService")) { } - public void Connect(string aClientName) + public void SetName(string aClientName) { Name = aClientName; - Channel.Connect(aClientName); - } - - public void Disconnect() - { - Channel.Disconnect(Name); - Name = ""; + Channel.SetName(aClientName); } public void SetText(int aLineIndex, string aText) @@ -81,13 +75,14 @@ Channel.SetText(aLineIndex, aText); } - public void SetTexts(System.Collections.Generic.IList aTexts) { Channel.SetTexts(aTexts); } - - + public int ClientCount() + { + return Channel.ClientCount(); + } } }