Table of Contents

Class GovernanceLoadDemonstrationServiceExtensions

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

Registers and maps the explicitly enabled, Development-only governance load demonstration.

public static class GovernanceLoadDemonstrationServiceExtensions
Inheritance
GovernanceLoadDemonstrationServiceExtensions
Inherited Members

Methods

AddApplicationGovernanceLoadDemonstration(IServiceCollection, IConfiguration, IHostEnvironment)

Registers the bounded demonstration only when its switch is enabled in Development.

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

Parameters

services IServiceCollection
configuration IConfiguration
environment IHostEnvironment

Returns

IServiceCollection

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
environment IHostEnvironment

Returns

bool

MapApplicationGovernanceLoadDemonstration(WebApplication)

Maps administrator-only start, cancel, and SSE routes only for an active Development demonstration.

public static WebApplication MapApplicationGovernanceLoadDemonstration(this WebApplication app)

Parameters

app WebApplication

Returns

WebApplication