# LibTmux.TmuxHooks.GetAllAsync

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