Esempio n. 1
0
 public static BaseCommand AsBaseCommand(this CommandPong command)
 {
     return(new BaseCommand
     {
         CommandType = BaseCommand.Type.Pong,
         Pong = command
     });
 }
Esempio n. 2
0
 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();
 }
Esempio n. 4
0
 public Task Send(CommandPong command, CancellationToken cancellationToken)
 => Send(command.AsBaseCommand(), cancellationToken);
Esempio n. 5
0
 public async Task Send(CommandPong command) => await Send(command.AsBaseCommand());