Exemplo n.º 1
0
 public void Disconnect()
 {
     if (IsConnectd)
     {
         client.Dissonnect(Id);
         client     = null;
         IsConnectd = false;
     }
 }
Exemplo n.º 2
0
 public void Connect(string name, string surname)
 {
     if (!IsConnectd)
     {
         client     = new Notification_ServiceClient(new System.ServiceModel.InstanceContext(this));
         Id         = client.Connect(name, surname);
         IsConnectd = true;
     }
 }