Table of Contents

Class Startup

Namespace
DuetWebServer
Assembly
DuetWebServer.dll

Class used to start the ASP.NET endpoint

public class Startup
Inheritance
Startup
Inherited Members

Remarks

Create a new Startup instance

Constructors

Startup(IConfiguration)

Class used to start the ASP.NET endpoint

public Startup(IConfiguration configuration)

Parameters

configuration IConfiguration

Launch configuration (see appsettings.json)

Remarks

Create a new Startup instance

Methods

Configure(IApplicationBuilder, IWebHostEnvironment, IServiceProvider)

Configure the HTTP request pipeline

public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider serviceProvider)

Parameters

app IApplicationBuilder

Application builder

env IWebHostEnvironment

Hosting environment

serviceProvider IServiceProvider

Service provider

ConfigureServices(IServiceCollection)

Configure web services and add service to the container

public void ConfigureServices(IServiceCollection services)

Parameters

services IServiceCollection

Service collection