Client/Client.cs
changeset 57 544132d07c3b
parent 55 b5ed2e29be23
child 62 ac698f4e1b36
     1.1 --- a/Client/Client.cs	Sun Sep 21 13:40:21 2014 +0200
     1.2 +++ b/Client/Client.cs	Sun Sep 21 19:07:18 2014 +0200
     1.3 @@ -60,8 +60,8 @@
     1.4          public string Name { get; set; }
     1.5          public string SessionId { get { return InnerChannel.SessionId; } }
     1.6  
     1.7 -        public Client(InstanceContext callbackInstance)
     1.8 -            : base(callbackInstance, new NetTcpBinding(SecurityMode.None, true), new EndpointAddress("net.tcp://localhost:8001/DisplayService"))
     1.9 +        public Client(ICallback aCallback)
    1.10 +            : base(new InstanceContext(aCallback), new NetTcpBinding(SecurityMode.None, true), new EndpointAddress("net.tcp://localhost:8001/DisplayService"))
    1.11          { }
    1.12  
    1.13          public void SetName(string aClientName)
    1.14 @@ -84,5 +84,10 @@
    1.15          {
    1.16              return Channel.ClientCount();
    1.17          }
    1.18 +
    1.19 +        public bool IsReady()
    1.20 +        {
    1.21 +            return State == CommunicationState.Opened;
    1.22 +        }
    1.23      }
    1.24  }