Skip to content

PostgresPortOptions

Namespace: Ankus.PgConfig

Assembly: Ankus.PgConfig.dll

Selects persistent port bases while leaving unspecified settings unchanged. Each base reserves room for every supported PostgreSQL major, from 13 through 19.

public sealed class PostgresPortOptions

Inheritance: object

Selects persistent port bases while leaving unspecified settings unchanged. Each base reserves room for every supported PostgreSQL major, from 13 through 19.

public PostgresPortOptions(int? basePort = null, int? baseTestingPort = null)

Parameters:

basePort — int?

The development port base, from 0 through 65516, or null to preserve it.

baseTestingPort — int?

The test port base, from 0 through 65516, or null to preserve it.

Gets the development port base to persist, or null to preserve the existing setting.

public int? BasePort { get; }

Value: int?

Gets the test port base to persist, or null to preserve the existing setting.

public int? BaseTestingPort { get; }

Value: int?