Class LockManager
Static class to manage read/write locks of third-party plugins
Inheritance
System.Object
LockManager
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.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 |
---|---|
System.Boolean |
Methods
LockMachineModel(Connection)
Function to create a read/write lock to the object model
Declaration
public static async Task LockMachineModel(Connection connection)
Parameters
Type | Name | Description |
---|---|---|
Connection | connection |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Asynchronous task |
UnlockMachineModel(Connection)
Unlock the machine model again
Declaration
public static async Task UnlockMachineModel(Connection connection)
Parameters
Type | Name | Description |
---|---|---|
Connection | connection |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |