C# Класс ZeroInstall.Publish.Capture.CaptureSession

Manages the process of taking two Snapshots and comparing them to generate a Feed.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CaptureSession System
GetCapabilityList CapabilityList
Load CaptureSession
Start CaptureSession

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CaptureSession ( [ snapshotBefore, [ feedBuilder ) : System
GetCapabilityList ( CommandMapper commandMapper, SnapshotDiff diff ) : CapabilityList
Load ( [ path, [ feedBuilder ) : CaptureSession
Start ( [ feedBuilder ) : CaptureSession

Описание методов

CollectFiles() публичный Метод

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.
Результат void

Diff() публичный Метод

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.
Результат void

Finish() публичный Метод

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
Результат void

Save() публичный Метод

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.
Результат void