Class ProtoReadinessOptions

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

How long the host waits for a readiness probe and how often it asks. One instance governs every probe of the host and every container the run starts; a probe registered with its own timeout uses that instead. The section ProtoTest:Readiness binds over code values when the host is built.

public sealed class ProtoReadinessOptions : IProtoConfigurableOptions
Inheritance
ProtoReadinessOptions
Implements
Inherited Members
Extension Methods

Fields

ConfigurationSectionName

The configuration section these options bind from.

public const string ConfigurationSectionName = "ProtoTest:Readiness"

Field Value

string

Properties

Interval

Gets or sets the pause between checks. Defaults to 100 milliseconds.

public TimeSpan Interval { get; set; }

Property Value

TimeSpan

Timeout

Gets or sets how long a single probe may take. Defaults to 30 seconds.

public TimeSpan Timeout { get; set; }

Property Value

TimeSpan

Methods

Validate()

Validates the resolved options once, after code callbacks and configuration have been applied. A bad value is a configuration error and must throw here rather than fail the first test that happens to use it. The default does nothing.

public void Validate()