Show / Hide Table of Contents

Class ImplicitLock

Implementation of the IImplicitLock interface

Inheritance
Object
ImplicitLock
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace:FubarDev.WebDavServer.Locking
Assembly:FubarDev.WebDavServer.dll
Syntax
public class ImplicitLock : IImplicitLock

Constructors

| Improve this Doc View Source

ImplicitLock(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

| Improve this Doc View Source

ImplicitLock(Boolean)

Initializes a new instance of the ImplicitLock class.

Declaration
public ImplicitLock(bool isSuccess = false)
Parameters
Type Name Description
Boolean isSuccess

false = All If header conditions failed, true = No lock manager, but still OK

| Improve this Doc View Source

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 If header

Properties

| Improve this Doc View Source

ConflictingLocks

Gets the locks preventing the usage of an implicit lock

Declaration
public IReadOnlyCollection<IActiveLock> ConflictingLocks { get; }
Property Value
Type Description
IReadOnlyCollection<IActiveLock>
Implements
IImplicitLock.ConflictingLocks
| Improve this Doc View Source

IsSuccessful

Gets a value indicating whether the If header was evaluated successfully

Declaration
public bool IsSuccessful { get; }
Property Value
Type Description
Boolean
Implements
IImplicitLock.IsSuccessful
| Improve this Doc View Source

IsTemporaryLock

Gets a value indicating whether an implicit lock was created

Declaration
public bool IsTemporaryLock { get; }
Property Value
Type Description
Boolean
Implements
IImplicitLock.IsTemporaryLock
| Improve this Doc View Source

OwnedLocks

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
IImplicitLock.OwnedLocks

Methods

| Improve this Doc View Source

CreateErrorResponse()

Creates an error response when IsSuccessful is false

Declaration
public IWebDavResult CreateErrorResponse()
Returns
Type Description
IWebDavResult

The WebDAV response

Implements
IImplicitLock.CreateErrorResponse()
| Improve this Doc View Source

DisposeAsync(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

Implements
IImplicitLock.DisposeAsync(CancellationToken)
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX