コード例 #1
0
        public void Execute(LauncherCommand command)
        {
            if (!(command is TCommand))
            {
                throw new NotSupportedException($"Invalid command type [{command.GetType().FullName}] given to CommandLauncher plugin [{GetType().FullName}]");
            }

            DoExecute((TCommand)command);
        }
コード例 #2
0
 public bool CanProcess(LauncherCommand command)
 {
     return(command is TCommand);
 }