protected void Disconnect(ISwitchConnection conn) { if (conn != null && conn.IsConnected) { conn.IsConnected = false; SendConnection(conn); } }
private void InternalSendConnection(ISwitchConnection conn, bool isFirstOne) { try { if (conn is SwitchConnection) { this.ClientApp.Service.SendConnection((SwitchConnection)conn); } else { if (conn is ConferenceConnection) { this.ClientApp.Service.SendConferenceConnection((ConferenceConnection)conn, isFirstOne); } } } catch { } }
protected void SendConnection(ISwitchConnection conn, bool isFirstOne = false) { _internalSendConnection.BeginInvoke(conn, isFirstOne, null, null); }