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
IServiceCollectionThe dependency injected IServiceCollection.
configuration
IConfigurationThe dependency injected IConfiguration.
environment
IHostEnvironmentThe 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>