Table of Contents

Class Program

Namespace
DuetWebServer
Assembly
DuetWebServer.dll

Main class of the ASP.NET Core endpoint

public static class Program
Inheritance
Program
Inherited Members

Fields

DefaultConfigFile

Default path to the configuration file

public const string DefaultConfigFile = "/opt/dsf/conf/http.json"

Field Value

string

Methods

CreateHostBuilder(string[])

Creates a new WebHost instance

public static IHostBuilder CreateHostBuilder(string[] args)

Parameters

args string[]

Command-line arguments

Returns

IHostBuilder

Web host builder

Main(string[])

Called when the application is launched

public static void Main(string[] args)

Parameters

args string[]

Command-line arguments