Class Updater
Static helper class to merge the RepRapFirmware object model with ours
Inheritance
System.Object
Updater
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: 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 async Task MachineModelFullyUpdated()
Returns
Type | Description |
---|---|
System.Threading.Tasks.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 |
---|---|---|
System.Byte[] | response | Legacy config response |
Run()
Process status updates in the background
Declaration
public static async Task Run()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Asynchronous task |
WaitForFullUpdate()
Wait for the model to be fully updated from RepRapFirmware
Declaration
public static Task WaitForFullUpdate()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Asynchronous task |
WaitForFullUpdate(CancellationToken)
Wait for the model to be fully updated from RepRapFirmware
Declaration
public static async Task WaitForFullUpdate(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Asynchronous task |