Class LockManager
Static class to manage read/write locks of third-party plugins
Inherited Members
Namespace: DuetControlServer.IPC
Assembly: DuetControlServer.dll
Syntax
public static class LockManager
Properties
IsLocked
Indicates if a third-party application has locked the object model for writing
Declaration
public static bool IsLocked { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
LockMachineModel(Connection)
Function to create a read/write lock to the object model
Declaration
public static Task LockMachineModel(Connection connection)
Parameters
Type | Name | Description |
---|---|---|
Connection | connection |
Returns
Type | Description |
---|---|
Task | Asynchronous task |
UnlockMachineModel(Connection)
Unlock the machine model again
Declaration
public static Task UnlockMachineModel(Connection connection)
Parameters
Type | Name | Description |
---|---|---|
Connection | connection |
Returns
Type | Description |
---|---|
Task |