public void ExpectClosed(Tcp.ConnectionClosed expected) => ExpectClosed(close => close == expected);
private void TcpConnectionClosed(Tcp.ConnectionClosed message) { Console.WriteLine("TCP關閉連線", $" Tcp關閉連線. Message=" + message.ToString()); ConnectToServer(); // 重連 }