# LibTmux.Testing.TmuxTestFactory.CreateServerAsync

- **Module:** LibTmux.Testing
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.Testing/TmuxTestFactory.cs#L44
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-testing-tmuxtestfactory-createserverasync/

```
LibTmux.Testing.TmuxTestFactory.CreateServerAsync(options: TmuxTestOptions?, cancellationToken: CancellationToken) -> Task<TemporaryServerScope>
```

Starts a server this test owns.

## Parameters

- `options` (`TmuxTestOptions?`): How to reach tmux, or null for a socket of its own.
- `cancellationToken` (`CancellationToken`): Cancels the tmux commands.

## Returns

The scope owning the server.
