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
servicesIServiceCollectionconfigurationIConfigurationenvironmentIHostEnvironment
Returns
IsActive(IConfiguration, IHostEnvironment)
Determines whether the feature switch is enabled in the Development environment.
public static bool IsActive(IConfiguration configuration, IHostEnvironment environment)
Parameters
configurationIConfigurationenvironmentIHostEnvironment
Returns
MapApplicationGovernanceLoadDemonstration(WebApplication)
Maps administrator-only start, cancel, and SSE routes only for an active Development demonstration.
public static WebApplication MapApplicationGovernanceLoadDemonstration(this WebApplication app)
Parameters
appWebApplication