# LibTmux.PsmuxSession

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Psmux/PsmuxSession.cs#L11
- **Page:** https://libtmux.org/en/dotnet/latest/reference/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

- `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.
