Show / Hide Table of Contents

Class LockHandler

Implements the ILockManager interface.

Inheritance
Object
LockHandler
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace:FubarDev.WebDavServer.Handlers.Impl
Assembly:FubarDev.WebDavServer.dll
Syntax
public class LockHandler : ILockHandler, IClass2Handler, IHandler

Constructors

| Improve this Doc View Source

LockHandler(IWebDavContext, IFileSystem, ILockManager, ITimeoutPolicy)

Initializes a new instance of the LockHandler class.

Declaration
public LockHandler([NotNull] IWebDavContext context, [NotNull] IFileSystem rootFileSystem, ILockManager lockManager = null, ITimeoutPolicy timeoutPolicy = null)
Parameters
Type Name Description
IWebDavContext context

The WebDAV request context

IFileSystem rootFileSystem

The root file system

ILockManager lockManager

The lock manager

ITimeoutPolicy timeoutPolicy

The timeout policy for the selection of the TimeoutHeader value

Properties

| Improve this Doc View Source

HttpMethods

Gets the HTTP methods that are processed by this handler

Declaration
public IEnumerable<string> HttpMethods { get; }
Property Value
Type Description
IEnumerable<String>
Implements
IHandler.HttpMethods

Methods

| Improve this Doc View Source

LockAsync(String, lockinfo, CancellationToken)

Creates a lock for the given path using the information in info.

Declaration
public Task<IWebDavResult> LockAsync(string path, lockinfo info, CancellationToken cancellationToken)
Parameters
Type Name Description
String path

The path to create the lock for

lockinfo info

The additional information used to create the lock

CancellationToken cancellationToken

The cancellcation token

Returns
Type Description
Task<IWebDavResult>

The result of the operation

Implements
ILockHandler.LockAsync(String, lockinfo, CancellationToken)
| Improve this Doc View Source

RefreshLockAsync(String, IfHeader, TimeoutHeader, CancellationToken)

Refreshes a lock for the given path using the lock identified by the ifHeader.

Declaration
public Task<IWebDavResult> RefreshLockAsync(string path, IfHeader ifHeader, TimeoutHeader timeoutHeader, CancellationToken cancellationToken)
Parameters
Type Name Description
String path

The path to create the lock for

IfHeader ifHeader

The If header used to identify the lock

TimeoutHeader timeoutHeader

The new timeout values

CancellationToken cancellationToken

The cancellcation token

Returns
Type Description
Task<IWebDavResult>

The result of the operation

Implements
ILockHandler.RefreshLockAsync(String, IfHeader, TimeoutHeader, CancellationToken)
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX