Zero Install .NET API 2.20.0
ZeroInstall.Store.Deployment.DeployDirectory Class Reference

Deploys/copies files listed in a Manifest file to another directory. More...

Inheritance diagram for ZeroInstall.Store.Deployment.DeployDirectory:
ZeroInstall.Store.Deployment.DirectoryOperation NanoByte::Common::StagedOperation

Public Member Functions

 DeployDirectory (string sourcePath, Manifest sourceManifest, string destinationPath, ITaskHandler handler)
 Creates a new directory deployment task. More...
 
- Public Member Functions inherited from ZeroInstall.Store.Deployment.DirectoryOperation
override void Dispose ()
 
- Public Member Functions inherited from NanoByte::Common::StagedOperation
void Stage ()
 
void Commit ()
 

Protected Member Functions

override void OnStage ()
 
override void OnCommit ()
 
override void OnRollback ()
 
- Protected Member Functions inherited from ZeroInstall.Store.Deployment.DirectoryOperation
void UnlockFiles (IEnumerable< string > files)
 Uses WindowsRestartManager to close any applications that have open references to the specified files if possible and removes read-only attributes. More...
 

Properties

string DestinationPath [get]
 The path of the destination directory. May already exist.
 
- Properties inherited from ZeroInstall.Store.Deployment.DirectoryOperation
bool NoRestart [getset]
 Indicates that applications shut down by the WindowsRestartManager shall not be restarted on Dispose.
 

Additional Inherited Members

- Static Protected Member Functions inherited from ZeroInstall.Store.Deployment.DirectoryOperation
static string Randomize (string path)
 Appends a random string to a file path.
 
- Protected Attributes inherited from ZeroInstall.Store.Deployment.DirectoryOperation
readonly string Path
 The path of the directory to operate on.
 
readonly Manifest Manifest
 The contents of a Manifests.Manifest file describing the directory.
 
readonly ITaskHandler Handler
 A callback object used when the the user needs to be asked questions or informed about IO tasks.
 

Detailed Description

Deploys/copies files listed in a Manifest file to another directory.

Constructor & Destructor Documentation

◆ DeployDirectory()

ZeroInstall.Store.Deployment.DeployDirectory.DeployDirectory ( string  sourcePath,
Manifest  sourceManifest,
string  destinationPath,
ITaskHandler  handler 
)
inline

Creates a new directory deployment task.

Parameters
sourcePathThe path of the source directory to copy from.
sourceManifestThe contents of a Manifest file describing the source directory.
destinationPathThe path of the destination directory to copy to.
handlerA callback object used when the the user needs to be asked questions or informed about IO tasks.

Member Function Documentation

◆ OnCommit()

override void ZeroInstall.Store.Deployment.DeployDirectory.OnCommit ( )
inlineprotectedvirtual

◆ OnRollback()

override void ZeroInstall.Store.Deployment.DeployDirectory.OnRollback ( )
inlineprotectedvirtual

◆ OnStage()

override void ZeroInstall.Store.Deployment.DeployDirectory.OnStage ( )
inlineprotectedvirtual

The documentation for this class was generated from the following file: