Class LockStatus
A list of locks affecting a single lock (request)
Inherited Members
Namespace:FubarDev.WebDavServer.Locking
Assembly:FubarDev.WebDavServer.dll
Syntax
public class LockStatus
Constructors
| Improve this Doc View SourceLockStatus(IReadOnlyCollection<IActiveLock>, IReadOnlyCollection<IActiveLock>, IReadOnlyCollection<IActiveLock>)
Initializes a new instance of the LockStatus class.
Declaration
public LockStatus([NotNull, ItemNotNull] IReadOnlyCollection<IActiveLock> referenceLocks, [NotNull, ItemNotNull] IReadOnlyCollection<IActiveLock> parentLocks, [NotNull, ItemNotNull] IReadOnlyCollection<IActiveLock> childLocks)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyCollection<IActiveLock> | referenceLocks | The locks found at the reference position |
IReadOnlyCollection<IActiveLock> | parentLocks | The locks found at positions higher in the hierarchy |
IReadOnlyCollection<IActiveLock> | childLocks | The locks found at positions lower in the hierarchy |
Properties
| Improve this Doc View SourceChildLocks
Gets the locks found at positions lower in the hierarchy
Declaration
[NotNull]
[ItemNotNull]
public IReadOnlyCollection<IActiveLock> ChildLocks { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<IActiveLock> |
Count
Gets the number of found locks
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
Empty
Gets the empty lock status
Declaration
public static LockStatus Empty { get; }
Property Value
Type | Description |
---|---|
LockStatus |
IsEmpty
Gets a value indicating whether there where no locks found at all
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
Boolean |
ParentLocks
Gets the locks found at positions higher in the hierarchy
Declaration
[NotNull]
[ItemNotNull]
public IReadOnlyCollection<IActiveLock> ParentLocks { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<IActiveLock> |
ReferenceLocks
Gets the locks found at the reference position
Declaration
[NotNull]
[ItemNotNull]
public IReadOnlyCollection<IActiveLock> ReferenceLocks { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<IActiveLock> |
Methods
| Improve this Doc View SourceGetLocks()
Gets all found locks
Declaration
public IEnumerable<IActiveLock> GetLocks()
Returns
Type | Description |
---|---|
IEnumerable<IActiveLock> | all found locks |