Table of Contents

Class PipelineInspectorServiceExtensions

Namespace
ReferenceApplication.Web.Extensions
Assembly
ReferenceApplication.Web.dll

Registers and maps the explicitly enabled, Development-only pipeline inspector.

public static class PipelineInspectorServiceExtensions
Inheritance
PipelineInspectorServiceExtensions
Inherited Members

Fields

SnapshotPath

Gets the route that returns a pipeline snapshot.

public const string SnapshotPath = "/api/v1/pipeline-inspector/snapshot"

Field Value

string

Methods

AddApplicationPipelineInspector(IServiceCollection, IConfiguration, IHostEnvironment)

Registers the inspector only when its switch is enabled in Development.

public static IServiceCollection AddApplicationPipelineInspector(this IServiceCollection services, IConfiguration configuration, IHostEnvironment environment)

Parameters

services IServiceCollection

The service collection to configure.

configuration IConfiguration

The application configuration.

environment IHostEnvironment

The host environment.

Returns

IServiceCollection

The same service collection so calls can be chained.

Remarks

Call after AddApplicationOpenTelemetry and AddApplicationGovernanceEvidence: the inspector reads the audit-completion outbox and audit reconciliation that the evidence composition registers, and observes the telemetry that OpenTelemetry creates.

The inspector is a reader of reconciliation state. It does not own or conditionally register reconciliation; the normal governance-evidence composition keeps that operational control available outside Development.

IsActive(IConfiguration, IHostEnvironment)

Determines whether the feature switch is enabled in the Development environment.

public static bool IsActive(IConfiguration configuration, IHostEnvironment environment)

Parameters

configuration IConfiguration

The application configuration.

environment IHostEnvironment

The host environment.

Returns

bool

true when the inspector is active.

MapApplicationPipelineInspector(WebApplication)

Maps the administrator-only snapshot route only when the inspector is active in Development.

public static WebApplication MapApplicationPipelineInspector(this WebApplication app)

Parameters

app WebApplication

The application.

Returns

WebApplication

The same application so calls can be chained.