Class ImplicitLock
Implementation of the IImplicitLock interface
Inherited Members
Namespace:FubarDev.WebDavServer.Locking
Assembly:FubarDev.WebDavServer.dll
Syntax
public class ImplicitLock : IImplicitLock
Constructors
| Improve this Doc View SourceImplicitLock(ILockManager, LockResult)
Initializes a new instance of the ImplicitLock class.
Declaration
public ImplicitLock([NotNull] ILockManager lockManager, [NotNull] LockResult lockResult)
Parameters
Type | Name | Description |
---|---|---|
ILockManager | lockManager | The lock manager |
LockResult | lockResult | Either the implicit lock or the conflicting locks |
ImplicitLock(Boolean)
Initializes a new instance of the ImplicitLock class.
Declaration
public ImplicitLock(bool isSuccess = false)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isSuccess | false = All |
ImplicitLock(IReadOnlyCollection<IActiveLock>)
Initializes a new instance of the ImplicitLock class.
Declaration
public ImplicitLock([NotNull, ItemNotNull] IReadOnlyCollection<IActiveLock> ownedLocks)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyCollection<IActiveLock> | ownedLocks | The locks matched by the |
Properties
| Improve this Doc View SourceConflictingLocks
Gets the locks preventing the usage of an implicit lock
Declaration
public IReadOnlyCollection<IActiveLock> ConflictingLocks { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<IActiveLock> |
Implements
| Improve this Doc View SourceIsSuccessful
Gets a value indicating whether the If
header was evaluated successfully
Declaration
public bool IsSuccessful { get; }
Property Value
Type | Description |
---|---|
Boolean |
Implements
| Improve this Doc View SourceIsTemporaryLock
Gets a value indicating whether an implicit lock was created
Declaration
public bool IsTemporaryLock { get; }
Property Value
Type | Description |
---|---|
Boolean |
Implements
| Improve this Doc View SourceOwnedLocks
Gets the locks matched by the If
header or implicit shared lock
Declaration
public IReadOnlyCollection<IActiveLock> OwnedLocks { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<IActiveLock> |
Implements
Methods
| Improve this Doc View SourceCreateErrorResponse()
Creates an error response when IsSuccessful is false
Declaration
public IWebDavResult CreateErrorResponse()
Returns
Type | Description |
---|---|
IWebDavResult | The WebDAV response |
Implements
| Improve this Doc View SourceDisposeAsync(CancellationToken)
Disposes the temporary lock (when it was issued)
Declaration
public Task DisposeAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The cancellation token |
Returns
Type | Description |
---|---|
Task | The async task |