Пример #1
0
 static async Task HandleInput(string input)
 {
     if (input.StartsWith("connect", StringComparison.OrdinalIgnoreCase))
     {
         await ConnectCommand.HandleCommand(input);
     }
     if (input.StartsWith("receive", StringComparison.OrdinalIgnoreCase))
     {
         ReceiveCommand.HandleCommand(input);
     }
     if (input.StartsWith("say", StringComparison.OrdinalIgnoreCase))
     {
         SayCommand.HandleCommand(input);
     }
 }