internal static Task Close(this ITransportConnection connection, string connectionId) { var command = new Command { Type = CommandType.Disconnect }; return(connection.Publish(new ConnectionMessage(connectionId, command))); }