# LibTmux.PsmuxConnectionOptions.PsmuxConnectionOptions

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Psmux/PsmuxConnectionOptions.cs#L34
- **Page:** https://libtmux.org/en/csharp/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`](https://learn.microsoft.com/dotnet/api/system.argumentexception): A path, hash, or namespace is absent, malformed, ambiguous, not fixed-drive,
or not isolated.
