public static Task Close(this ITransportConnection connection) { var command = new SignalCommand { Type = CommandType.Disconnect }; return(connection.SendCommand(command)); }