Show / Hide Table of Contents

Class MoveHandler

The implementation of the IMoveHandler interface.

Inheritance
Object
CopyMoveHandlerBase
MoveHandler
Inherited Members
CopyMoveHandlerBase.WebDavContext
CopyMoveHandlerBase.Logger
CopyMoveHandlerBase.ExecuteAsync(String, Uri, DepthHeader, Boolean, RecursiveProcessingMode, Boolean, CancellationToken)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace:FubarDev.WebDavServer.Handlers.Impl
Assembly:FubarDev.WebDavServer.dll
Syntax
public class MoveHandler : CopyMoveHandlerBase, IMoveHandler, IClass1Handler, IHandler

Constructors

| Improve this Doc View Source

MoveHandler(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 MOVE handler

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 Source

HttpMethods

Gets the HTTP methods that are processed by this handler

Declaration
public IEnumerable<string> HttpMethods { get; }
Property Value
Type Description
IEnumerable<String>
Implements
IHandler.HttpMethods

Methods

| Improve this Doc View Source

CreateLocalTargetActions(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
CopyMoveHandlerBase.CreateLocalTargetActions(RecursiveProcessingMode)
| Improve this Doc View Source

CreateRemoteTargetActionsAsync(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
CopyMoveHandlerBase.CreateRemoteTargetActionsAsync(Uri, CancellationToken)
| Improve this Doc View Source

MoveAsync(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

Implements
IMoveHandler.MoveAsync(String, Uri, CancellationToken)
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX