Class TestFileTransfer

Transfer functionality for files used when tesing import/export packages.

Inheritance
System.Object
TestFileTransfer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Enterprise.Transfer
Assembly: EPiServer.Enterprise.dll
Version: 8.11.0
Syntax
[ServiceConfiguration(typeof(IFileTransferValidator))]
public class TestFileTransfer : IFileTransferValidator, IFileTransfer

Constructors

TestFileTransfer()

Initializes a new instance of the TestFileTransfer class.

Declaration
public TestFileTransfer()

Properties

Files

Gets the list of transfered files.

Declaration
public IList<IFileTransferObject> Files { get; }
Property Value
Type Description
System.Collections.Generic.IList<IFileTransferObject>

The transfered files.

HasMoreData

Gets a value indicating whether this instance has more data.

Declaration
public bool HasMoreData { get; }
Property Value
Type Description
System.Boolean

This test functionality always returns false.

TransferContext

Gets or sets the transfer context.

Declaration
public IContentTransferContext TransferContext { get; set; }
Property Value
Type Description
IContentTransferContext

The transfer context.

Methods

Export()

Dummy functionality to test export.

Declaration
public IFileTransferObject[] Export()
Returns
Type Description
IFileTransferObject[]

Import(IFileTransferObject)

Check if the virtual path provider exists for the site, if not a warning is given.

Declaration
public IFileTransferObject Import(IFileTransferObject input)
Parameters
Type Name Description
IFileTransferObject input

Meta data for imported file.

Returns
Type Description
IFileTransferObject

Always returns input value

TryAddBlob(Blob)

Adds a Blob instance to the package.

Declaration
public bool TryAddBlob(Blob blob)
Parameters
Type Name Description
Blob blob

The BLOB.

Returns
Type Description
System.Boolean

true if the blob was added else false.

TryAddFile(String, out String)

Dummy functionality to add files to the export package.

Declaration
public bool TryAddFile(string url, out string addedFilePath)
Parameters
Type Name Description
System.String url

The URL.

System.String addedFilePath

The added file path.

Returns
Type Description
System.Boolean

Always the same Url that is send to this function.

Implements

Extension Methods