# LibTmux.Client.ResolveAttachmentAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Client.Administration.cs#L109
- **Page:** https://libtmux.org/en/csharp/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.
