override fun execute()

in rider/src/main/kotlin/com/jetbrains/aspire/rider/run/states/AspireHostRunProfileState.kt [28:55]


    override fun execute(
        executor: Executor?,
        runner: ProgramRunner<*>
    ): ExecutionResult {
        dotnetExecutable.validate()

        val commandLine = dotnetExecutable.createRunCommandLineBlocking(dotnetRuntime)
        val originalExecutable = Path(commandLine.exePath)
        val processHandler = TerminalProcessHandler(
            environment.project,
            commandLine,
            commandLine.commandLineString,
            originalExecutable = originalExecutable
        )
        processHandler.addStoppedContainerRuntimeProcessListener(
            containerRuntimeNotificationCount,
            environment.project
        )
        val console = createConsole(
            ConsoleKind.Normal,
            processHandler,
            environment.project
        )

        dotnetExecutable.onBeforeProcessStarted(environment, environment.runProfile, processHandler)

        return DefaultExecutionResult(console, processHandler)
    }