C# Class ZeroInstall.Publish.Capture.CaptureSession

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

Private Properties

Property Type Description
CaptureSession System
GetCapabilityList CapabilityList
Load CaptureSession
Start CaptureSession

Public Methods

Method 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

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

Method Details

CollectFiles() public method

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.
return void

Diff() public method

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.
return void

Finish() public method

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
return void

Save() public method

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.
return void