Bootstrapping
Start and initialize the application
Overview
Modular starters
IStarter interface
public interface IStarter : ITopologicSortable<string>
{
int Order { get; }
// Allow or suppress starter execution based on some
// conditions like app installation state for instance
bool Matches(IApplicationContext appContext);
// Add services to the container
void ConfigureServices(IServiceCollection services, IApplicationContext appContext);
// Configure MVC services
void ConfigureMvc(IMvcBuilder mvcBuilder, IServiceCollection services, IApplicationContext appContext);
// Configure the application's request pipeline with precise middleware ordering.
void BuildPipeline(RequestPipelineBuilder builder);
// Register endpoint routes
void MapRoutes(EndpointRoutingBuilder builder);
}StarterBase abstract class
Conditional execution
Order of execution
Middleware and Endpoint ordering
Startup class full implementation example
Initializers
Smartstore built-in initializers
Initializer
Description
Last updated
Was this helpful?