Watch Aspire live streamsDocsTry Aspire

TerminalOwner

Enumnet10.0
📦 Aspire.Hosting v13.6.0
Identifies whether the AppHost or an application resource controls a terminal's workload lifetime.
namespace Aspire.Hosting.ApplicationModel;
public enum TerminalOwner
Ownership is fixed when a terminal is created. It is distinct from TerminalPlacement, which describes where the terminal is displayed and is also fixed at creation.
AppHost= 0
The terminal is created by AppHost code, and its lifetime is controlled by whoever created it.
Resource= 1
The workload belongs to a resource in the application model, and its lifetime follows that resource.