/// <summary> /// Opens the Connection to the Server. /// </summary> /// <param name="username">Username</param> public void Open(string username) { try { int id = channel.Hello(username); ClientId = id; IsOpen = true; IsReady = false; Protocol = 1; } catch (Exception ex) { CloseByError(ex); throw; } }