Class Program
Main class of the ASP.NET Core endpoint
Inheritance
System.Object
Program
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|
System.String |
Methods
CreateHostBuilder(String[])
Creates a new WebHost instance
Declaration
public static IHostBuilder CreateHostBuilder(string[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | args | Command-line arguments |
Returns
Type | Description |
---|---|
Microsoft.Extensions.Hosting.IHostBuilder | Web host builder |
Main(String[])
Called when the application is launched
Declaration
public static void Main(string[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | args | Command-line arguments |