# LibTmux.Testing.TmuxNameGenerator.CreateAvailableSessionNameAsync

- **Module:** LibTmux.Testing.TmuxNameGenerator
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Testing/TmuxNameGenerator.cs#L42
- **Page:** https://libtmux.org/reference/dotnet/libtmux-testing-tmuxnamegenerator-createavailablesessionnameasync/

```
LibTmux.Testing.TmuxNameGenerator.CreateAvailableSessionNameAsync(server: Server, prefix: string?, cancellationToken: CancellationToken) -> Task<string>
```

Makes a session name the server does not already hold.

## Parameters

- `server` (Server) — The server to ask.
- `prefix` (string?) — What the name starts with, or null for this generator's.
- `cancellationToken` (CancellationToken) — Cancels the tmux commands.

## Returns

The name.
