Skip to content
Tracon

TraconProductionProfileOptions

Namespace Tracon · Assembly Tracon.Core.dll

The risks a deployment has deliberately decided to carry, for RequireProductionProfile.

public sealed class TraconProductionProfileOptions
Inheritance
object ← TraconProductionProfileOptions
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Acceptance is per item and by name. There is no “accept everything” switch and none will be added: a blanket accept turns the gate back into the silence it exists to remove, while one Accept line per decision shows up in a code review and in the log.

Accepting a risk does not change any setting. It records that a human looked at the decision and chose the permissive side.

public TraconProductionProfileOptions()

Gets the risks the deployment accepted, in no particular order.

public IReadOnlyCollection<TraconProductionRisk> AcceptedRisks { get; }

IReadOnlyCollection<TraconProductionRisk>

Accepts one risk, so it no longer stops the host.

public TraconProductionProfileOptions Accept(TraconProductionRisk risk)

risk TraconProductionRisk

The decision being accepted.

TraconProductionProfileOptions

The same options, for chaining.

Accepting the same risk twice is a no-op, so a composition module that declares an accept cannot collide with another that declares the same one. The acceptance is written to the log at information level, by name, every time the host starts.

ArgumentOutOfRangeException

risk is not a defined value.