Class ProtoInfrastructureContext
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
SettingsProtoInfrastructureSettingsConfigurationIConfigurationTimeProviderTimeProvider
Properties
Configuration
public IConfiguration Configuration { get; init; }
Property Value
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
Settings
public ProtoInfrastructureSettings Settings { get; init; }
Property Value
TimeProvider
public TimeProvider TimeProvider { get; init; }