Class DeleteHandler
The implementation of the IDeleteHandler interface
Inherited Members
Namespace:FubarDev.WebDavServer.Handlers.Impl
Assembly:FubarDev.WebDavServer.dll
Syntax
public class DeleteHandler : IDeleteHandler, IClass1Handler, IHandler
Constructors
| Improve this Doc View SourceDeleteHandler(IFileSystem, IWebDavContext)
Initializes a new instance of the DeleteHandler class.
Declaration
public DeleteHandler(IFileSystem rootFileSystem, IWebDavContext context)
Parameters
Type | Name | Description |
---|---|---|
IFileSystem | rootFileSystem | The root file system |
IWebDavContext | context | The current WebDAV context |
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 SourceDeleteAsync(String, CancellationToken)
Deletes the element at the given path
Declaration
public Task<IWebDavResult> DeleteAsync(string path, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path to the element to delete |
CancellationToken | cancellationToken | The cancellcation token |
Returns
Type | Description |
---|---|
Task<IWebDavResult> | The result of the operation |