# LibTmux.PsmuxConnectionOptions.PsmuxConnectionOptions

- **Module:** LibTmux.PsmuxConnectionOptions
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Psmux/PsmuxConnectionOptions.cs#L34
- **Page:** https://libtmux.org/en/dotnet/latest/reference/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.
