RazorWireWebExample
Namespaces
RazorWireExampleModule
A module that demonstrates the usage of RazorWire in an ASP.NET Core MVC application.
ConfigureServices
void ConfigureServices(StartupContext context, IServiceCollection services)
Registers services required by the Razor Wire example module.
Parameters
contextThe startup context providing environment and configuration for module initialization.servicesThe service collection to which module services are added.
RegisterDependentModules
void RegisterDependentModules(ModuleDependencyBuilder builder)
Declares this module's dependency on the RazorWireWebModule.
Parameters
builderA builder used to register dependent modules for the application.
ConfigureHostBeforeServices
void ConfigureHostBeforeServices(StartupContext context, IHostBuilder builder)
Allows the module to configure the host builder before dependency injection services are registered.
Parameters
contextContextual information for startup (environment, configuration, module metadata).builderThe host builder to modify (e.g., to add configuration sources, logging, or host-level services).
ConfigureHostAfterServices
void ConfigureHostAfterServices(StartupContext context, IHostBuilder builder)
Performs host-level configuration after services have been registered.
Parameters
contextContextual information about the startup environment.builderThe host builder to modify (e.g., configure hosting, logging, or lifetime) after service registration.
ConfigureWebApplication
void ConfigureWebApplication(StartupContext context, IApplicationBuilder app)
Configures the web application's middleware and request pipeline.
Parameters
contextContextual startup information (environment, configuration, module metadata) available during web application configuration.appThe application builder used to add middleware and configure request handling.
ConfigureEndpoints
void ConfigureEndpoints(StartupContext context, IEndpointRouteBuilder endpoints)
Configures the module's endpoint routing by registering the default MVC controller route.
Parameters
contextThe startup context for the module.endpointsThe endpoint route builder used to register routes; the default controller route "{controller=Home}/{action=Index}/{id?}" is added to it.