DirectoryConnectionOptions record

Namespace Runic.Platform.Administration.Windows.DirectoryServices in Runic.Platform.Administration.Windows 0.23.0

public sealed record DirectoryConnectionOptions : IEquatable<DirectoryConnectionOptions>

Inherits or implements IEquatable.

Explicit directory endpoint and bounded connection behavior. Credentials are supplied separately.

Constructors

DirectoryConnectionOptions

public DirectoryConnectionOptions(string Server)

Explicit directory endpoint and bounded connection behavior. Credentials are supplied separately.

Properties

Authentication

public DirectoryAuthentication Authentication { get; init; }

Authentication mode.

Port

public int Port { get; init; }

Port; zero selects 636 for TLS or 389 otherwise.

ReuseConnection

public bool ReuseConnection { get; init; }

Whether a WindowsDirectoryClient keeps one bound connection for all its operations.

Remarks

False (the default) opens and binds a connection for each operation. When true, the client binds on its first operation, runs its operations one at a time on that connection, and closes it when the client is disposed. A connection failure closes the connection without retrying the operation; the next operation binds again.

Server

public string Server { get; init; }

No documentation.

Timeout

public TimeSpan Timeout { get; init; }

Native request timeout, between one second and five minutes.

Transport

public DirectoryTransport Transport { get; init; }

Connection protection.