Class Updater
Static helper class to merge the RepRapFirmware object model with ours
Inherited Members
Namespace: DuetControlServer.Model
Assembly: DuetControlServer.dll
Syntax
public static class Updater
Methods
ConnectionLost()
Called by the SPI subsystem when the connection to the Duet has been lost
Declaration
public static void ConnectionLost()
MachineModelFullyUpdated()
Called in non-SPI mode to notify waiting tasks about a finished model update
Declaration
public static Task MachineModelFullyUpdated()
Returns
Type | Description |
---|---|
Task | Asynchronous task |
ProcessLegacyConfigResponse(byte[])
Process a config response (no longer supported or encouraged; for backwards-compatibility)
Declaration
public static void ProcessLegacyConfigResponse(byte[] response)
Parameters
Type | Name | Description |
---|---|---|
byte[] | response | Legacy config response |
Run()
Process status updates in the background
Declaration
public static Task Run()
Returns
Type | Description |
---|---|
Task | Asynchronous task |
WaitForFullUpdate()
Wait for the model to be fully updated from RepRapFirmware
Declaration
public static Task WaitForFullUpdate()
Returns
Type | Description |
---|---|
Task | Asynchronous task |
WaitForFullUpdate(CancellationToken)
Wait for the model to be fully updated from RepRapFirmware
Declaration
public static Task WaitForFullUpdate(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
Task | Asynchronous task |