Class LockHandler
Implements the ILockManager interface.
Inherited Members
Namespace:FubarDev.WebDavServer.Handlers.Impl
Assembly:FubarDev.WebDavServer.dll
Syntax
public class LockHandler : ILockHandler, IClass2Handler, IHandler
Constructors
| Improve this Doc View SourceLockHandler(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 SourceHttpMethods
Gets the HTTP methods that are processed by this handler
Declaration
public IEnumerable<string> HttpMethods { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<String> |
Implements
Methods
| Improve this Doc View SourceLockAsync(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
| Improve this Doc View SourceRefreshLockAsync(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 |
| TimeoutHeader | timeoutHeader | The new timeout values |
| CancellationToken | cancellationToken | The cancellcation token |
Returns
| Type | Description |
|---|---|
| Task<IWebDavResult> | The result of the operation |