Show / Hide Table of Contents

Class Lock

A generic implementation of the ILock interface.

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

Constructors

| Improve this Doc View Source

Lock(String, String, Boolean, XElement, LockAccessType, LockShareMode, TimeSpan)

Initializes a new instance of the Lock class.

Declaration
public Lock([NotNull] string path, [NotNull] string href, bool recursive, [CanBeNull] XElement owner, LockAccessType accessType, LockShareMode shareMode, TimeSpan timeout)
Parameters
Type Name Description
String path

The file system path (root-relative) this lock should be applied to

String href

The href this lock should be applied to (might be relative or absolute)

Boolean recursive

Must the lock be applied recursively to all children?

XElement owner

The owner of the lock

LockAccessType accessType

The LockAccessType of the lock

LockShareMode shareMode

The LockShareMode of the lock

TimeSpan timeout

The lock timeout

| Improve this Doc View Source

Lock(String, String, Boolean, XElement, String, String, TimeSpan)

Initializes a new instance of the Lock class.

Declaration
protected Lock([NotNull] string path, [NotNull] string href, bool recursive, [CanBeNull] XElement owner, [NotNull] string accessType, [NotNull] string shareMode, TimeSpan timeout)
Parameters
Type Name Description
String path

The file system path (root-relative) this lock should be applied to

String href

The href this lock should be applied to (might be relative or absolute)

Boolean recursive

Must the lock be applied recursively to all children?

XElement owner

The owner of the lock

String accessType

The LockAccessType of the lock

String shareMode

The LockShareMode of the lock

TimeSpan timeout

The lock timeout

| Improve this Doc View Source

Lock(Uri, Uri, Boolean, XElement, LockAccessType, LockShareMode, TimeSpan)

Initializes a new instance of the Lock class.

Declaration
public Lock([NotNull] Uri path, [NotNull] Uri href, bool recursive, [CanBeNull] XElement owner, LockAccessType accessType, LockShareMode shareMode, TimeSpan timeout)
Parameters
Type Name Description
Uri path

The file system path (root-relative) this lock should be applied to

Uri href

The href this lock should be applied to (might be relative or absolute)

Boolean recursive

Must the lock be applied recursively to all children?

XElement owner

The owner of the lock

LockAccessType accessType

The LockAccessType of the lock

LockShareMode shareMode

The LockShareMode of the lock

TimeSpan timeout

The lock timeout

Properties

| Improve this Doc View Source

AccessType

Gets the access type of the lock

Declaration
public string AccessType { get; }
Property Value
Type Description
String
Implements
ILock.AccessType
See Also
LockAccessType
| Improve this Doc View Source

Href

Gets the href the lock is for

Declaration
public string Href { get; }
Property Value
Type Description
String
Implements
ILock.Href
| Improve this Doc View Source

Owner

Gets the XML specifying the owner of the lock.

Declaration
public XElement Owner { get; }
Property Value
Type Description
XElement
| Improve this Doc View Source

Path

Gets the path the lock is for

Declaration
public string Path { get; }
Property Value
Type Description
String
Implements
ILock.Path
| Improve this Doc View Source

Recursive

Gets a value indicating whether the lock must be applied recusively

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

ShareMode

Gets the share mode of the lock

Declaration
public string ShareMode { get; }
Property Value
Type Description
String
Implements
ILock.ShareMode
See Also
LockShareMode
| Improve this Doc View Source

Timeout

Gets the timeout of the lock

Declaration
public TimeSpan Timeout { get; }
Property Value
Type Description
TimeSpan
Implements
ILock.Timeout
Remarks

The lock is automatically released after the expiration of the timeout.

Methods

| Improve this Doc View Source

GetOwner()

Gets the XML identifying the owner of the lock

Declaration
public XElement GetOwner()
Returns
Type Description
XElement

The XML identifying the owner of the lock

Implements
ILock.GetOwner()
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX