Table of Contents

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

configuration IConfiguration

The dependency injected IConfiguration.

environment IHostEnvironment

The 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

services IServiceCollection

The IServiceCollection to add the services to.