Scalar
AppSurfaceWebScalarModule
SourceA web module that integrates Scalar API reference documentation into the application.
ConfigureServices
void ConfigureServices(StartupContext context, IServiceCollection services)
Source
Configures services needed for Scalar; currently no implementation is required.
Parameters
contextThe startup context.servicesThe service collection.
RegisterDependentModules
void RegisterDependentModules(ModuleDependencyBuilder builder)
Source
Registers dependencies for this module, specifically AppSurfaceWebOpenApiModule.
Parameters
builderThe module dependency builder.
ConfigureEndpoints
void ConfigureEndpoints(StartupContext context, IEndpointRouteBuilder endpoints)
Source
Maps the Scalar API reference endpoint.
Parameters
contextThe startup context.endpointsThe endpoint route builder.
ConfigureHostBeforeServices
void ConfigureHostBeforeServices(StartupContext context, IHostBuilder builder)
Source
Executes pre-service host configuration; currently no implementation is required.
Parameters
contextThe startup context.builderThe host builder.
ConfigureHostAfterServices
void ConfigureHostAfterServices(StartupContext context, IHostBuilder builder)
Source
Executes post-service host configuration; currently no implementation is required.
Parameters
contextThe startup context.builderThe host builder.
ConfigureWebApplication
void ConfigureWebApplication(StartupContext context, IApplicationBuilder app)
Source
Configures the web application pipeline; currently no implementation is required.
Parameters
contextThe startup context.appThe application builder.