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

Deletes files listed in a Manifest file from a directory. More...

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

Public Member Functions

 ClearDirectory (string path, Manifest manifest, ITaskHandler handler)
 Creates a new directory clear 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...
 

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.
 
- Properties inherited from ZeroInstall.Store.Deployment.DirectoryOperation
bool NoRestart [getset]
 Indicates that applications shut down by the WindowsRestartManager shall not be restarted on Dispose.
 

Detailed Description

Deletes files listed in a Manifest file from a directory.

Constructor & Destructor Documentation

◆ ClearDirectory()

ZeroInstall.Store.Deployment.ClearDirectory.ClearDirectory ( string  path,
Manifest  manifest,
ITaskHandler  handler 
)
inline

Creates a new directory clear task.

Parameters
pathThe path of the directory to clear.
manifestThe contents of a Manifest file describing the directory.
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.ClearDirectory.OnCommit ( )
inlineprotectedvirtual

◆ OnRollback()

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

◆ OnStage()

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

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