C# Class ZeroInstall.Publish.Capture.CaptureSession

Manages the process of taking two Snapshots and comparing them to generate a Feed.
Afficher le fichier Open project: 0install/0install-win

Private Properties

Свойство Type Description
CaptureSession System
GetCapabilityList CapabilityList
Load CaptureSession
Start CaptureSession

Méthodes publiques

Méthode Description
CollectFiles ( [ archivePath, [ archiveUrl, [ handler ) : void

Creates a archive containing the InstallationDir.

Sets FeedBuilder.RetrievalMethod and calls FeedBuilder.CalculateDigest.

Diff ( [ handler ) : void

Collects data from the locations indicated by the differences between the Start state and the current system state.

Finish ( ) : void

Finishes the capture process after Diff has been called an FeedBuilder.MainCandidate has been set.

Save ( [ path ) : void

Saves the capture session to a snapshot file.

Private Methods

Méthode Description
CaptureSession ( [ snapshotBefore, [ feedBuilder ) : System
GetCapabilityList ( CommandMapper commandMapper, SnapshotDiff diff ) : CapabilityList
Load ( [ path, [ feedBuilder ) : CaptureSession
Start ( [ feedBuilder ) : CaptureSession

Method Details

CollectFiles() public méthode

Creates a archive containing the InstallationDir.
Sets FeedBuilder.RetrievalMethod and calls FeedBuilder.CalculateDigest.
was not called or is not set. The user canceled the task. There was an error reading the installation files or writing the archive. Access to the file system was not permitted.
public CollectFiles ( [ archivePath, [ archiveUrl, [ handler ) : void
archivePath [ The path of the archive file to create.
archiveUrl [ The URL where the archive will be uploaded.
handler [ A callback object used when the the user needs to be informed about IO tasks.
Résultat void

Diff() public méthode

Collects data from the locations indicated by the differences between the Start state and the current system state.
No installation directory was detected. The user canceled the task. There was an error accessing the registry or file system. Access to the registry or file system was not permitted.
public Diff ( [ handler ) : void
handler [ A callback object used when the the user needs to be informed about IO tasks.
Résultat void

Finish() public méthode

Finishes the capture process after Diff has been called an FeedBuilder.MainCandidate has been set.
was not called or is not set. There was an error accessing the registry or file system. Access to the registry or file system was not permitted.
public Finish ( ) : void
Résultat void

Save() public méthode

Saves the capture session to a snapshot file.
A problem occured while writing the file. Write access to the file is not permitted.
public Save ( [ path ) : void
path [ The file to save in.
Résultat void