Skip to main content

ModularStartupActivator

.NET Core 3.0 disables IStartup and multiple Configure* entry points on Startup class requiring the use of a clean ModularStartupActivator adapter class for implementing https://docs.servicestack.net/modular-startup

ASP.NET Core MVC has a built-in limitation/heuristic requiring the Startup class to be defined in the Host assembly, which can be done by registering a custom ModularStartupActivator sub class.

Assembly: ServiceStack.dll
View Source
Declaration
public class ModularStartupActivator : object

Properties

StartupType

View Source
Declaration
public static Type? StartupType { get; set; }

Configuration

View Source
Declaration
protected IConfiguration Configuration { get; }

Fields

Instance

View Source
Declaration
protected readonly ModularStartup Instance

Methods

ConfigureServices(IServiceCollection)

View Source
Declaration
public virtual void ConfigureServices(IServiceCollection services)
Parameters
TypeName
IServiceCollectionservices

Configure(IApplicationBuilder)

View Source
Declaration
public virtual void Configure(IApplicationBuilder app)
Parameters
TypeName
IApplicationBuilderapp