public void Disconnect() { if (IsConnectd) { client.Dissonnect(Id); client = null; IsConnectd = false; } }
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; } }