Class MoveHandler
The implementation of the IMoveHandler interface.
Inherited Members
Namespace:FubarDev.WebDavServer.Handlers.Impl
Assembly:FubarDev.WebDavServer.dll
Syntax
public class MoveHandler : CopyMoveHandlerBase, IMoveHandler, IClass1Handler, IHandler
Constructors
| Improve this Doc View SourceMoveHandler(IFileSystem, IWebDavContext, IOptions<MoveHandlerOptions>, ILogger<MoveHandler>, IServiceProvider)
Initializes a new instance of the MoveHandler class.
Declaration
public MoveHandler(IFileSystem rootFileSystem, IWebDavContext host, IOptions<MoveHandlerOptions> options, ILogger<MoveHandler> logger, IServiceProvider serviceProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IFileSystem | rootFileSystem | The root file system |
| IWebDavContext | host | The WebDAV server context |
| Microsoft.Extensions.Options.IOptions<MoveHandlerOptions> | options | The options for the |
| Microsoft.Extensions.Logging.ILogger<MoveHandler> | logger | The logger for this handler |
| IServiceProvider | serviceProvider | The service provider used to lazily query the IRemoteMoveTargetActionsFactory implementation |
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 SourceCreateLocalTargetActions(RecursiveProcessingMode)
Create the target action implementation for local COPY or MOVE
Declaration
protected override ITargetActions<CollectionTarget, DocumentTarget, MissingTarget> CreateLocalTargetActions(RecursiveProcessingMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| RecursiveProcessingMode | mode | The requested processing mode (in-filesystem or cross-filesystem) |
Returns
| Type | Description |
|---|---|
| ITargetActions<CollectionTarget, DocumentTarget, MissingTarget> | The implementation for local actions |
Overrides
| Improve this Doc View SourceCreateRemoteTargetActionsAsync(Uri, CancellationToken)
Create the target action implementation for remote COPY or MOVE
Declaration
protected override Task<IRemoteTargetActions> CreateRemoteTargetActionsAsync(Uri destinationUrl, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | destinationUrl | The destination URL |
| CancellationToken | cancellationToken | The cancellcation token |
Returns
| Type | Description |
|---|---|
| Task<IRemoteTargetActions> | The implementation for remote actions |
Overrides
| Improve this Doc View SourceMoveAsync(String, Uri, CancellationToken)
Moves from the source to the destination
Declaration
public Task<IWebDavResult> MoveAsync(string sourcePath, Uri destination, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourcePath | |
| Uri | destination | The destination to move to |
| CancellationToken | cancellationToken | The cancellation token |
Returns
| Type | Description |
|---|---|
| Task<IWebDavResult> | The result of the operation |