# TerminalOwner

- Kind: `enum`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.6.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting/ApplicationModel/TerminalOwner.cs)

Identifies whether the AppHost or an application resource controls a terminal's workload lifetime.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public enum TerminalOwner
```

## Remarks

Ownership is fixed when a terminal is created. It is distinct from [TerminalPlacement](/reference/api/csharp/aspire.hosting/terminalplacement.md), which describes where the terminal is displayed and is also fixed at creation.

## Enum Members

| Name | Value | Description |
| --- | --- | --- |
| 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. |
