Class FailureScenarioOptions
- Namespace
- ReferenceApplication.Web.Governance.FailureScenarios
- Assembly
- ReferenceApplication.Web.dll
Configures the Development-only, administrator-only failure scenarios in the governance explorer.
public sealed class FailureScenarioOptions
- Inheritance
-
FailureScenarioOptions
- Inherited Members
Fields
ArmLifetime
Gets how long an armed run waits for its request before it expires unused.
public static readonly TimeSpan ArmLifetime
Field Value
MaximumRunIdLength
Gets the longest run identifier accepted.
public const int MaximumRunIdLength = 64
Field Value
RetainedRunCount
Gets the number of runs kept; the oldest is forgotten, with any delivery fault it holds, when another is armed.
public const int RetainedRunCount = 32
Field Value
RunHeaderName
Gets the request header that names the armed run a governed request belongs to.
public const string RunHeaderName = "X-Failure-Scenario-Run"
Field Value
SectionName
Gets the configuration section for the failure scenarios.
public const string SectionName = "ReferenceApplication:FailureScenarios"
Field Value
Properties
Enabled
Gets or sets a value indicating whether the failure scenarios are explicitly enabled. They remain unavailable outside Development, and also while the disposable demonstration database is not in use.
public bool Enabled { get; set; }