Interface ILockHandler
Interface for the LOCK
handler
Inherited Members
Namespace:FubarDev.WebDavServer.Handlers
Assembly:FubarDev.WebDavServer.dll
Syntax
public interface ILockHandler : IClass2Handler, IHandler
Methods
| Improve this Doc View SourceLockAsync(String, lockinfo, CancellationToken)
Creates a lock for the given path using the information in info.
Declaration
[NotNull]
[ItemNotNull]
Task<IWebDavResult> LockAsync([NotNull] string path, [NotNull] 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 |
RefreshLockAsync(String, IfHeader, TimeoutHeader, CancellationToken)
Refreshes a lock for the given path using the lock identified by the ifHeader.
Declaration
[NotNull]
[ItemNotNull]
Task<IWebDavResult> RefreshLockAsync([NotNull] string path, [NotNull] IfHeader ifHeader, [CanBeNull] 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 |