Show / Hide Table of Contents

Class CopyHandler

The implementation of the ICopyHandler interface.

Inheritance
Object
CopyMoveHandlerBase
CopyHandler
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 CopyHandler : CopyMoveHandlerBase, ICopyHandler, IClass1Handler, IHandler

Constructors

| Improve this Doc View Source

CopyHandler(IFileSystem, IWebDavContext, IOptions<CopyHandlerOptions>, ILogger<CopyHandler>, IServiceProvider)

Initializes a new instance of the CopyHandler class.

Declaration
public CopyHandler(IFileSystem rootFileSystem, IWebDavContext host, IOptions<CopyHandlerOptions> options, ILogger<CopyHandler> logger, IServiceProvider serviceProvider)
Parameters
Type Name Description
IFileSystem rootFileSystem

The root file system

IWebDavContext host

The WebDAV server context

Microsoft.Extensions.Options.IOptions<CopyHandlerOptions> options

The options for the COPY handler

Microsoft.Extensions.Logging.ILogger<CopyHandler> logger

The logger for this handler

IServiceProvider serviceProvider

The service provider used to lazily query the IRemoteCopyTargetActionsFactory 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

CopyAsync(String, Uri, CancellationToken)

Copies from the source to the destination

Declaration
public Task<IWebDavResult> CopyAsync(string path, Uri destination, CancellationToken cancellationToken)
Parameters
Type Name Description
String path

The source to copy

Uri destination

The destination to copy to

CancellationToken cancellationToken

The cancellation token

Returns
Type Description
Task<IWebDavResult>

The result of the operation

Implements
ICopyHandler.CopyAsync(String, Uri, CancellationToken)
| 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
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX