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.Cms.AspNet.dll
Version: 11.20.7Syntax
public class PackageFileHandler
Constructors
PackageFileHandler(DirectoryInfo, Guid)
Declaration
public PackageFileHandler(DirectoryInfo rootDirectory, Guid contextId)
Parameters
Type | Name | Description |
---|---|---|
System. |
rootDirectory | |
System. |
contextId |
Properties
DefaultSourceDirectory
Declaration
public static DirectoryInfo DefaultSourceDirectory { get; }
Property Value
Type | Description |
---|---|
System. |
DefaultTargetDirectory
Declaration
public static DirectoryInfo DefaultTargetDirectory { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
ClearPackageFiles()
Declaration
public void ClearPackageFiles()
GetExistingPackages()
Declaration
public FileInfo[] GetExistingPackages()
Returns
Type | Description |
---|---|
System. |
GetPackagePath(PackageFileHandler.TypeOfPackage)
Declaration
public string GetPackagePath(PackageFileHandler.TypeOfPackage packageType)
Parameters
Type | Name | Description |
---|---|---|
Package |
packageType |
Returns
Type | Description |
---|---|
System. |
ValidateContextDirectory(DirectoryInfo, Guid)
Validates the context directory.
Declaration
public static void ValidateContextDirectory(DirectoryInfo rootDirectory, Guid contextId)
Parameters
Type | Name | Description |
---|---|---|
System. |
rootDirectory | The root directory. |
System. |
contextId | The context id. |
Remarks
This will throw exception if e.g. the current account has not access rights to directory.