Class Startup
Class used to start the ASP.NET Core endpoint
Inherited Members
Namespace: DuetWebServer
Assembly: DuetWebServer.dll
Syntax
public class Startup
Constructors
Startup(IConfiguration)
Create a new Startup instance
Declaration
public Startup(IConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| IConfiguration | configuration | Launch configuration (see appsettings.json) |
Methods
Configure(IApplicationBuilder, IWebHostEnvironment, IServiceProvider)
Configure the HTTP request pipeline
Declaration
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider serviceProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IApplicationBuilder | app | Application builder |
| IWebHostEnvironment | env | Hosting environment |
| IServiceProvider | serviceProvider | Service provider |
ConfigureServices(IServiceCollection)
Configure web services and add service to the container
Declaration
public void ConfigureServices(IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | Service collection |