/// <summary> /// Sets the command executor for this command. /// </summary> /// <param name="executor">The executor to be setted.</param> /// <returns>The current builder.</returns> public CommandBuilder WithExecutor(ICommandExecutor executor) { executor.NotNull(nameof(executor)); Executor = executor; return(this); }