Table of Contents

Class FailureScenarioFeature

Namespace
ReferenceApplication.Web.Governance.FailureScenarios
Assembly
ReferenceApplication.Web.dll

Marks a request that consumed an armed failure-scenario run.

public sealed record FailureScenarioFeature : IEquatable<FailureScenarioFeature>
Inheritance
FailureScenarioFeature
Implements
Inherited Members

Constructors

FailureScenarioFeature(string, string)

Marks a request that consumed an armed failure-scenario run.

public FailureScenarioFeature(string RunId, string ScenarioId)

Parameters

RunId string

The run identifier.

ScenarioId string

The scenario the run belongs to.

Properties

RunId

The run identifier.

public string RunId { get; init; }

Property Value

string

ScenarioId

The scenario the run belongs to.

public string ScenarioId { get; init; }

Property Value

string

Methods

For(HttpContext?, string)

Finds the scenario a request is running, when it is running one.

public static FailureScenarioFeature? For(HttpContext? httpContext, string scenarioId)

Parameters

httpContext HttpContext

The request, or null outside a request.

scenarioId string

The scenario to look for.

Returns

FailureScenarioFeature

The feature, or null when the request is not running that scenario.