private void ManejarProxy() { switch (Proxy.State) { case CommunicationState.Created: Proxy.Open(); break; case CommunicationState.Opening: break; case CommunicationState.Opened: break; case CommunicationState.Closing: case CommunicationState.Closed: case CommunicationState.Faulted: Proxy = null; Proxy.Open(); break; default: break; } }
private void OpenProxy() { try { // Run the open service connection with async type with timeout proxy.Open(); } catch (Exception) { } }