Table of Contents

Class LockMovementRequest

Namespace
DuetControlServer.Link.Requests
Assembly
DuetControlServer.dll

Representation of a movement lock/unlock request

public sealed class LockMovementRequest
Inheritance
LockMovementRequest
Inherited Members

Creates a new queued lock/unlock request instance

Constructors

Representation of a movement lock/unlock request

public LockMovementRequest(bool isLockRequest)

Parameters

isLockRequest bool

Whether the resource shall be locked

Creates a new queued lock/unlock request instance

Properties

Indicates if this is a lock or unlock request

public bool IsLockRequest { get; }

Property Value

bool

Indicates if the lock request has been sent to the firmware

public bool IsLockRequested { get; set; }

Property Value

bool

Awaitable task returning true if the lock could be acquired. It returns false if the controller is reset or an emergency stop occurs

public Task<bool> Task { get; }

Property Value

Task<bool>

Methods

Resolve the pending task with the given result

public void Resolve(bool lockAcquired)

Parameters

lockAcquired bool

Whether the lock could be acquired