Table of Contents

Class StartupFactory<TStartup>

Namespace
Codebelt.Bootstrapper
Assembly
Codebelt.Bootstrapper.dll

The default implementation of IStartupFactory<TStartup>.

public class StartupFactory<TStartup> : IStartupFactory<TStartup> where TStartup : StartupRoot

Type Parameters

TStartup
Inheritance
StartupFactory<TStartup>
Implements
IStartupFactory<TStartup>

Constructors

StartupFactory(IServiceCollection, IConfiguration, IHostEnvironment)

Initializes a new instance of the StartupFactory<TStartup> class.

public StartupFactory(IServiceCollection services, IConfiguration configuration, IHostEnvironment environment)

Parameters

services IServiceCollection

The dependency injected IServiceCollection.

configuration IConfiguration

The dependency injected IConfiguration.

environment IHostEnvironment

The dependency injected IHostEnvironment.

Properties

Instance

Provides access to an instance of the specified TStartup.

public TStartup Instance { get; }

Property Value

TStartup

A reference to the object of type StartupRoot.

See Also

IStartupFactory<TStartup>