Skip to content

HostedServiceLifecycleMode

Controls how IHostedService lifecycle is handled during a run.

public enum HostedServiceLifecycleMode

Repl runs as a component inside an existing host. Lifecycle is managed by the host. Alias of None kept for readability in hosted scenarios.

Guest = 0

HostedServiceLifecycleMode

Repl orchestrates hosted-service start/stop around command execution.

Head = 1

HostedServiceLifecycleMode

Repl does not orchestrate hosted-service lifecycle.

None = 0

HostedServiceLifecycleMode