# LibTmux.PsmuxConnectionOptions.PsmuxConnectionOptions

- **Module:** LibTmux.PsmuxConnectionOptions
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Psmux/PsmuxConnectionOptions.cs#L34
- **Page:** https://libtmux.org/reference/dotnet/libtmux-psmuxconnectionoptions-psmuxconnectionoptions/

```
LibTmux.PsmuxConnectionOptions.PsmuxConnectionOptions(executablePath: string, expectedBinarySha256: string, dataDirectory: string, namespaceName: string, logger: ILogger?)
```

Initializes one explicit psmux endpoint.

## Parameters

- `executablePath` (string) — The fully qualified <c>psmux.exe</c> path on a fixed local Windows drive.
Use its <c>/mnt/...</c> path when WSL launches psmux.
- `expectedBinarySha256` (string) — The exact audited client SHA-256 exposed by
<see cref="PsmuxServer.SupportedBinarySha256" />.
- `dataDirectory` (string) — A canonical, absolute data-directory path on a fixed local Windows drive.
- `namespaceName` (string) — A dedicated non-default <c>-L</c> namespace containing exactly one session.
- `logger` (ILogger?) — The optional connection logger.

## Raises

- `ArgumentException` — A path, hash, or namespace is absent, malformed, ambiguous, not fixed-drive,
or not isolated.
