# LibTmux.TmuxHooks.GetAllAsync

- **Module:** LibTmux.TmuxHooks
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Hooks/TmuxHooks.cs#L113
- **Page:** https://libtmux.org/reference/dotnet/libtmux-tmuxhooks-getallasync/

```
LibTmux.TmuxHooks.GetAllAsync(request: ListHooksRequest?, cancellationToken: CancellationToken) -> Task<IReadOnlyList<TmuxHook>>
```

Reads every hook in the scope.

## Parameters

- `request` (ListHooksRequest?) — Which scope to read, or null for the plain reading.
- `cancellationToken` (CancellationToken) — Cancels the tmux command.

## Returns

Every hook tmux reported, in the order it reported them.
