# LibTmux.Testing.TemporarySessionScope.StartAsync

- **Module:** LibTmux.Testing.TemporarySessionScope
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Testing/TemporarySessionScope.cs#L29
- **Page:** https://libtmux.org/reference/dotnet/libtmux-testing-temporarysessionscope-startasync/

```
LibTmux.Testing.TemporarySessionScope.StartAsync(server: Server, request: NewSessionRequest?, parent: IAsyncDisposable?, cancellationToken: CancellationToken) -> Task<TemporarySessionScope>
```

Creates a temporary session on a running server.

## Parameters

- `server` (Server) — The server to create the session on.
- `request` (NewSessionRequest?) — The session to create.
- `parent` (IAsyncDisposable?) — The parent scope transferred into this scope.
- `cancellationToken` (CancellationToken) — Cancels the tmux commands.

## Returns

The scope owning the session.
