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
configurationIConfigurationLaunch 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
appIApplicationBuilderApplication builder
envIWebHostEnvironmentHosting environment
serviceProviderIServiceProviderService provider
ConfigureServices(IServiceCollection)
Configure web services and add service to the container
public void ConfigureServices(IServiceCollection services)
Parameters
servicesIServiceCollectionService collection