Class PackageFileHandler

Inheritance
System.Object
PackageFileHandler
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.MirroringService.Common
Assembly: EPiServer.Enterprise.dll
Version: 8.11.0
Syntax
public class PackageFileHandler

Constructors

PackageFileHandler(DirectoryInfo, Guid)

Declaration
public PackageFileHandler(DirectoryInfo rootDirectory, Guid contextId)
Parameters
Type Name Description
System.IO.DirectoryInfo rootDirectory
System.Guid contextId

Properties

DefaultSourceDirectory

Declaration
public static DirectoryInfo DefaultSourceDirectory { get; }
Property Value
Type Description
System.IO.DirectoryInfo

DefaultTargetDirectory

Declaration
public static DirectoryInfo DefaultTargetDirectory { get; }
Property Value
Type Description
System.IO.DirectoryInfo

Methods

ClearPackageFiles()

Declaration
public void ClearPackageFiles()

GetExistingPackages()

Declaration
public FileInfo[] GetExistingPackages()
Returns
Type Description
System.IO.FileInfo[]

GetPackagePath(PackageFileHandler.TypeOfPackage)

Declaration
public string GetPackagePath(PackageFileHandler.TypeOfPackage packageType)
Parameters
Type Name Description
PackageFileHandler.TypeOfPackage packageType
Returns
Type Description
System.String

ValidateContextDirectory(DirectoryInfo, Guid)

Validates the context directory.

Declaration
public static void ValidateContextDirectory(DirectoryInfo rootDirectory, Guid contextId)
Parameters
Type Name Description
System.IO.DirectoryInfo rootDirectory

The root directory.

System.Guid contextId

The context id.

Remarks

This will throw exception if e.g. the current account has not access rights to directory.

Extension Methods