Class Program
Main class of the ASP.NET Core endpoint
Inherited Members
Namespace: DuetWebServer
Assembly: DuetWebServer.dll
Syntax
public static class Program
Fields
DefaultConfigFile
Default path to the configuration file
Declaration
public const string DefaultConfigFile = "/opt/dsf/conf/http.json"
Field Value
| Type | Description |
|---|---|
| string |
Methods
CreateHostBuilder(string[])
Creates a new WebHost instance
Declaration
public static IHostBuilder CreateHostBuilder(string[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | args | Command-line arguments |
Returns
| Type | Description |
|---|---|
| IHostBuilder | Web host builder |
Main(string[])
Called when the application is launched
Declaration
public static void Main(string[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | args | Command-line arguments |