Class Program
Main program class
Inherited Members
Namespace: DuetControlServer
Assembly: DuetControlServer.dll
Syntax
public static class Program
Fields
CancellationToken
Global cancellation token that is triggered when the program is supposed to terminate
Declaration
public static readonly CancellationToken CancellationToken
Field Value
Type | Description |
---|---|
CancellationToken |
Version
Version of this application
Declaration
public static readonly string Version
Field Value
Type | Description |
---|---|
string |
Methods
ShutdownAsync(bool)
Terminate this program and kill it forcefully if required
Declaration
public static Task ShutdownAsync(bool waitForTermination = false)
Parameters
Type | Name | Description |
---|---|---|
bool | waitForTermination | Wait for program to be fully terminated |
Returns
Type | Description |
---|---|
Task | Asynchronous task |