# Class AppOrchestrator | EchoHub Documentation
Central orchestrator for the EchoHub TUI client. Wires UI events to service calls and connection events to UI updates.

# Class AppOrchestrator

Namespace
  EchoHub.Client

Assembly
  EchoHub.Client.dll

Central orchestrator for the EchoHub TUI client. Wires UI events to service calls and connection events to UI updates.

    public sealed class AppOrchestrator : IDisposable

Inheritance
  object
  AppOrchestrator

Implements
  IDisposable

Inherited Members
  object.GetType()
  object.ToString()
  object.Equals(object)
  object.Equals(object, object)
  object.ReferenceEquals(object, object)
  object.GetHashCode()

## Constructors

### AppOrchestrator(IApplication, ClientConfig)

    public AppOrchestrator(IApplication app, ClientConfig config)

#### Parameters

`app` IApplication
`config` ClientConfig

## Properties

### MainWindow

    public MainWindow MainWindow { get; }

#### Property Value

MainWindow

### PendingUpdate

Set when the user confirms an update. The host must run this after the Terminal.Gui main loop exits (console restored), so the updater's in-place restart doesn't fight the TUI.

    public Func<Task>? PendingUpdate { get; }

#### Property Value

Func<Task>

## Methods

### Dispose()

    public void Dispose()