TopLevelAppModularStartup
Used to load ModularStartup classes in .NET 6+ top-level WebApplicationBuilder builder
Assembly: ServiceStack.dll
View Source
Declaration
public class TopLevelAppModularStartup : ModularStartup
Properties
Instance
View Source
Declaration
public static ModularStartup Instance { get; }
AppHostType
View Source
Declaration
public Type AppHostType { get; set; }
StartupInstance
View Source
Declaration
public AppHostBase StartupInstance { get; set; }
Inherited Properties
Configuration
View Source
Declaration
public IConfiguration? Configuration { get; set; }
IgnoreTypes
Which Startup Types not to load
View Source
Declaration
public List<Type> IgnoreTypes { get; set; }
Instance
View Source
Declaration
public static ModularStartup Instance { get; protected set; }
LoadedConfigurations
View Source
Declaration
public List<object> LoadedConfigurations { get; set; }
ScanAssemblies
View Source
Declaration
public List<Assembly>? ScanAssemblies { get; }
TypeResolver
View Source
Declaration
public Func<IEnumerable<Type>> TypeResolver { get; }
Methods
Create<THost>(THost, IConfiguration, Func<IEnumerable<Type>>)
View Source
Declaration
public static ModularStartup Create<THost>(THost instance, IConfiguration configuration, Func<IEnumerable<Type>> typesResolver)
where THost : AppHostBase
Returns
Parameters
Type | Name |
---|---|
<THost> | instance |
IConfiguration | configuration |
Func<IEnumerable<Type>> | typesResolver |
Type Parameters
THost
ConfigureServices(IServiceCollection)
View Source
Declaration
public void ConfigureServices(IServiceCollection services)
Parameters
Type | Name |
---|---|
IServiceCollection | services |
Configure(IApplicationBuilder)
View Source
Declaration
public void Configure(IApplicationBuilder app)
Parameters
Type | Name |
---|---|
IApplicationBuilder | app |
Inherited Methods
Configure(IApplicationBuilder)
View Source
Declaration
public void Configure(IApplicationBuilder app)
Parameters
Type | Name |
---|---|
IApplicationBuilder | app |
ConfigureServices(IServiceCollection)
View Source
Declaration
public IServiceProvider ConfigureServices(IServiceCollection services)
Returns
IServiceProvider
Parameters
Type | Name |
---|---|
IServiceCollection | services |
Create<TStartup>()
View Source
Declaration
public static Type Create<TStartup>()
Returns
Type
Type Parameters
TStartup
CreateStartupInstance(Type)
View Source
Declaration
public object CreateStartupInstance(Type type)
Returns
System.Object
Parameters
Type | Name |
---|---|
Type | type |
GetPriorityInstances()
View Source
Declaration
public List<Tuple<object, int>> GetPriorityInstances()
Returns
List<Tuple<System.Object,System.Int32>>
LoadType(Type)
Whether to load the Startup Type or not, allows all Startup Types not in IgnoreTypes by default
View Source
Declaration
public virtual bool LoadType(Type startupType)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
Type | startupType |