public static BaseCommand AsBaseCommand(this CommandPong command) { return(new BaseCommand { CommandType = BaseCommand.Type.Pong, Pong = command }); }
public static BaseCommand ToBaseCommand(this CommandPong value) { return(new BaseCommand { type = BaseCommand.Type.Pong, Pong = value }); }
public PingPongHandler(IConnection connection) { _connection = connection; _pong = new CommandPong(); }
public Task Send(CommandPong command, CancellationToken cancellationToken) => Send(command.AsBaseCommand(), cancellationToken);
public async Task Send(CommandPong command) => await Send(command.AsBaseCommand());