Class StartupRoot
- Namespace
- Codebelt.Bootstrapper
- Assembly
- Codebelt.Bootstrapper.dll
Provides the base class of a conventional based Startup class.
public abstract class StartupRoot
- Inheritance
-
StartupRoot
- Derived
Constructors
StartupRoot(IConfiguration, IHostEnvironment)
Initializes a new instance of the StartupRoot class.
protected StartupRoot(IConfiguration configuration, IHostEnvironment environment)
Parameters
configurationIConfigurationThe dependency injected IConfiguration.
environmentIHostEnvironmentThe dependency injected IHostEnvironment.
Properties
Configuration
Gets the IConfiguration of this instance.
protected IConfiguration Configuration { get; }
Property Value
- IConfiguration
The IConfiguration of this instance.
Environment
Gets the IHostEnvironment of this instance.
protected IHostEnvironment Environment { get; }
Property Value
- IHostEnvironment
The IHostEnvironment of this instance.
Methods
ConfigureServices(IServiceCollection)
Register services into the IServiceCollection.
public abstract void ConfigureServices(IServiceCollection services)
Parameters
servicesIServiceCollectionThe IServiceCollection to add the services to.