# LibTmux.TmuxHooks.GetAllAsync

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