C# Класс ZeroInstall.Commands.Utils.MaintenanceManager

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
PerformedWindowMessageID int

Private Properties

Свойство Тип Описание
DeleteIfExists void
DeleteServiceLogFiles void
DesktopIntegrationApply void
DesktopIntegrationRemove void
LoadManifest Manifest
NgenApply void
NgenRemove void
RegistryApply void
RegistryRemove void
RemoveOneGetBootstrap void
RemoveOneGetBootstrap void
ServiceInstall void
ServiceStart void
ServiceStop bool
ServiceUninstall void
TargetMutexAquire void
TargetMutexRelease void

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

Метод Описание
Deploy ( ) : void

Runs the deployment process.

MaintenanceManager ( [ targetDir, [ handler, bool machineWide, bool portable ) : System

Creates a new maintenance manager.

Remove ( ) : void

Runs the removal process.

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

Метод Описание
DeleteIfExists ( string path ) : void
DeleteServiceLogFiles ( ) : void
DesktopIntegrationApply ( ) : void
DesktopIntegrationRemove ( ) : void
LoadManifest ( [ dirPath ) : Manifest
NgenApply ( ) : void

Runs ngen in the background to pre-compile new/updated .NET assemblies.

NgenRemove ( ) : void

Runs ngen to remove pre-compiled .NET assemblies.

RegistryApply ( ) : void

Update the registry entries.

RegistryRemove ( ) : void
RemoveOneGetBootstrap ( ) : void

Try to remove OneGet Bootstrap module to prevent future PowerShell sessions from loading it again.

RemoveOneGetBootstrap ( string dirPath ) : void
ServiceInstall ( ) : void

Installs the Zero Install Store Service.

ServiceStart ( ) : void

Starts the Zero Install Store Service.

Must call this after TargetMutexRelease.

ServiceStop ( ) : bool

Stops the Zero Install Store Service if it is running.

ServiceUninstall ( ) : void

Uninstalls the Zero Install Store Service.

TargetMutexAquire ( ) : void

Waits for any Zero Install instances running in TargetDir to terminate and then prevents new ones from starting.

The TargetDir is encoded into an AppMutex name using object.GetHashCode.

TargetMutexRelease ( ) : void

Counterpart to TargetMutexAquire.

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

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

Runs the deployment process.
Access to a resource was denied. An IO operation failed.
public Deploy ( ) : void
Результат void

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

Creates a new maintenance manager.
public MaintenanceManager ( [ targetDir, [ handler, bool machineWide, bool portable ) : System
targetDir [ The full path to the directory containing the Zero Install instance.
handler [ A callback object used when the the user needs to be asked questions or informed about download and IO tasks.
machineWide bool Apply operations machine-wide instead of just for the current user.
portable bool Controls whether the Zero Install instance at should be a portable instance.
Результат System

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

Runs the removal process.
Access to a resource was denied. An IO operation failed.
public Remove ( ) : void
Результат void

Описание свойств

PerformedWindowMessageID публичное статическое свойство

The window message ID (for use with WindowsUtils.BroadcastMessage) that signals that a maintenance operation has been performed.
public static int PerformedWindowMessageID
Результат int