C# Class ZeroInstall.Store.Implementations.Deployment.DirectoryOperation

Common base class for deployment operations that operate on directories with Implementations.Manifests.
Inheritance: NanoByte.Common.StagedOperation
Mostra file Open project: 0install/0install-win

Private Properties

Property Type Description

Protected Methods

Method Description
DirectoryOperation ( [ path, [ manifest, [ handler ) : System

Creates a new manifest directory task.

Dispose ( bool disposing ) : void
Randomize ( string path ) : string

Appends a random string to a file path.

UnlockFiles ( IEnumerable files ) : void

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.

Method Details

DirectoryOperation() protected method

Creates a new manifest directory task.
protected DirectoryOperation ( [ path, [ manifest, [ handler ) : System
path [ The path of the directory to operate on.
manifest [ The contents of a file describing the directory.
handler [ A callback object used when the the user needs to be asked questions or informed about IO tasks.
return System

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Randomize() protected static method

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

UnlockFiles() protected method

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.
protected UnlockFiles ( IEnumerable files ) : void
files IEnumerable
return void