Class UnlockHandler
The implementation of the IUnlockHandler interface
Inherited Members
Namespace:FubarDev.WebDavServer.Handlers.Impl
Assembly:FubarDev.WebDavServer.dll
Syntax
public class UnlockHandler : IUnlockHandler, IClass2Handler, IHandler
Constructors
| Improve this Doc View SourceUnlockHandler(IWebDavContext, ILockManager)
Initializes a new instance of the UnlockHandler class.
Declaration
public UnlockHandler([NotNull] IWebDavContext context, [CanBeNull] ILockManager lockManager = null)
Parameters
Type | Name | Description |
---|---|---|
IWebDavContext | context | The WebDAV request context |
ILockManager | lockManager | The global lock manager |
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 SourceUnlockAsync(String, LockTokenHeader, CancellationToken)
Removes a LOCK with the given stateToken from the given path
Declaration
public Task<IWebDavResult> UnlockAsync(string path, LockTokenHeader stateToken, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path to remove the lock for |
LockTokenHeader | stateToken | The state token of the lock to remove |
CancellationToken | cancellationToken | The cancellcation token |
Returns
Type | Description |
---|---|
Task<IWebDavResult> | The result of the operation |