C# 클래스 ZeroInstall.Commands.Utils.MaintenanceManager

파일 보기 프로젝트 열기: 0install/0install-win 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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