# LibTmux.Client.ResolveAttachmentAsync

- **Module:** LibTmux.Client
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Client.Administration.cs#L109
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-client-resolveattachmentasync/

```
LibTmux.Client.ResolveAttachmentAsync(cancellationToken: CancellationToken) -> Task<ClientAttachment?>
```

Reads where this client is looking now.

The three parts come from one reading of the client, so a client that
moves between sessions cannot yield a window from one and a pane from
another. A server that has stopped answering is not part of this: the
first read here is a live listing, and a live listing throws on
failure rather than answering null for it.

## Parameters

- `cancellationToken` (CancellationToken): Cancels the tmux commands.

## Returns

The session, window and pane the client is on, or null when the client
has detached or its session has since gone.
