Class PeriodicUpdater
Static class that updates the machine model in certain intervals
Inherited Members
Namespace: DuetControlServer.Model
Assembly: DuetControlServer.dll
Syntax
public static class PeriodicUpdater
Methods
IsProtocolEnabled(NetworkProtocol)
Check if the given protocol is enabled
Declaration
public static bool IsProtocolEnabled(NetworkProtocol protocol)
Parameters
Type | Name | Description |
---|---|---|
NetworkProtocol | protocol | Protocol to check |
Returns
Type | Description |
---|---|
bool | True if the protocol is enabled |
ProtocolEnabled(NetworkProtocol)
Called when a network protocol has been enabled
Declaration
public static void ProtocolEnabled(NetworkProtocol protocol)
Parameters
Type | Name | Description |
---|---|---|
NetworkProtocol | protocol | Enabled protocol |
Run()
Run model updates in a certain interval. This function updates host properties like network interfaces and storage devices
Declaration
public static Task Run()
Returns
Type | Description |
---|---|
Task | Asynchronous task |
UpdateSbc()
Update SBC data key
Declaration
public static void UpdateSbc()