# LibTmux.PsmuxSession

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Psmux/PsmuxSession.cs#L11
- **Page:** https://libtmux.org/reference/dotnet/libtmux-psmuxsession/

An immutable observation of the sole psmux session.

This observation is bound to <see cref="Server" />'s captured generation.
Query methods throw <see cref="StaleServerGenerationException" /> after replacement;
call <see cref="PsmuxServer.RefreshAsync" /> to obtain a fresh observation.

## Members

- `PsmuxSession` (method)
- `Server` (property) — Gets the psmux endpoint that produced this observation.
- `Id` (property) — Gets the captured session identifier.
- `Name` (property) — Gets the captured session name.
- `Attached` (property) — Gets whether a client was attached when the session was read.
- `GetWindowsAsync` (method) — Reads the session's current windows.
- `GetPanesAsync` (method) — Reads the session's current panes.
