Class ProtoInfrastructureContext

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

The run's collected state, handed to infrastructure as it starts: the settings earlier infrastructure provided, the suite's own configuration, and the clock in effect (the active test's, or the run's on a background flow).

public sealed record ProtoInfrastructureContext : IEquatable<ProtoInfrastructureContext>
Inheritance
ProtoInfrastructureContext
Implements
Inherited Members
Extension Methods

Constructors

ProtoInfrastructureContext(ProtoInfrastructureSettings, IConfiguration, TimeProvider)

The run's collected state, handed to infrastructure as it starts: the settings earlier infrastructure provided, the suite's own configuration, and the clock in effect (the active test's, or the run's on a background flow).

public ProtoInfrastructureContext(ProtoInfrastructureSettings Settings, IConfiguration Configuration, TimeProvider TimeProvider)

Parameters

Settings ProtoInfrastructureSettings
Configuration IConfiguration
TimeProvider TimeProvider

Properties

Configuration

public IConfiguration Configuration { get; init; }

Property Value

IConfiguration

Readiness

Gets the run's readiness policy, so a piece that waits - a container - uses the same instance and timeout ConfigureReadiness set for the host's probes. null when the host has none (a provider assembled by hand, or a piece started outside a host).

public ProtoReadinessOptions? Readiness { get; init; }

Property Value

ProtoReadinessOptions

Settings

public ProtoInfrastructureSettings Settings { get; init; }

Property Value

ProtoInfrastructureSettings

TimeProvider

public TimeProvider TimeProvider { get; init; }

Property Value

TimeProvider