RazorDocs Search

RazorDocs

Namespaces

Type

RazorDocsWebModule

Web module configuration for the RazorDocs documentation system.

Method

ConfigureServices

void ConfigureServices(StartupContext context, IServiceCollection services)

Registers services required by the RazorDocs module into the provided service collection.

Remarks

Adds HTML sanitizer, Markdown and C# harvesters, and the documentation aggregator.

Method

RegisterDependentModules

void RegisterDependentModules(ModuleDependencyBuilder builder)

Registers runtime module dependencies for this web module, including RazorWireWebModule.

Parameters

  • builderThe dependency builder used to register required modules.
Method

ConfigureHostBeforeServices

void ConfigureHostBeforeServices(StartupContext context, IHostBuilder builder)

Performs host-level configuration steps before application services are registered.

Parameters

  • contextThe startup context providing module and environment information.
  • builderThe host builder to configure prior to service registration.
Method

ConfigureHostAfterServices

void ConfigureHostAfterServices(StartupContext context, IHostBuilder builder)

Performs host-level configuration steps after application services have been registered.

Parameters

  • contextThe startup context providing module and environment information.
  • builderThe host builder to modify or extend after services are configured.
Method

ConfigureWebApplication

void ConfigureWebApplication(StartupContext context, IApplicationBuilder app)

Configures the application's request pipeline and middleware for this module.

Parameters

  • contextThe startup context for the module invocation.
  • appThe application builder used to configure middleware and endpoints.
Method

ConfigureEndpoints

void ConfigureEndpoints(StartupContext context, IEndpointRouteBuilder endpoints)

Adds the module's default catch-all controller route for documentation endpoints.

Parameters

  • contextStartup context for the application and environment.
  • endpointsEndpoint route builder used to map the module's routes.