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

Common base class for deployment operations that operate on directories with Manifests.Manifests. More...

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

Public Member Functions

override void Dispose ()
 
- Public Member Functions inherited from NanoByte::Common::StagedOperation
void Stage ()
 
void Commit ()
 

Protected Member Functions

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...
 
- Protected Member Functions inherited from NanoByte::Common::StagedOperation
abstract void OnStage ()
 
abstract void OnCommit ()
 
abstract void OnRollback ()
 

Static Protected Member Functions

static string Randomize (string path)
 Appends a random string to a file path.
 

Protected Attributes

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

bool NoRestart [getset]
 Indicates that applications shut down by the WindowsRestartManager shall not be restarted on Dispose.
 

Detailed Description

Common base class for deployment operations that operate on directories with Manifests.Manifests.

Member Function Documentation

◆ Dispose()

override void ZeroInstall.Store.Deployment.DirectoryOperation.Dispose ( )
inlinevirtual

Reimplemented from NanoByte::Common::StagedOperation.

◆ UnlockFiles()

void ZeroInstall.Store.Deployment.DirectoryOperation.UnlockFiles ( IEnumerable< string >  files)
inlineprotected

Uses WindowsRestartManager to close any applications that have open references to the specified files if possible and removes read-only attributes.

Closed applications will be restarted by Dispose.


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