C# 클래스 ZeroInstall.Commands.ProgramUtils

Provides utility methods for application entry points.
파일 보기 프로젝트 열기: 0install/0install-win

Private Properties

프로퍼티 타입 설명
FindOtherInstance string
TryRunOtherInstance ExitCode?

공개 메소드들

메소드 설명
Init ( ) : void

Common initialization code to be called by every Frontend executable right after startup.

Run ( [ exeName, [ args, [ handler ) : ExitCode

Parses command-line arguments and performs the indicated action. Performs error handling.

비공개 메소드들

메소드 설명
FindOtherInstance ( bool needsMachineWide = true ) : string
TryRunOtherInstance ( [ exeName, [ args, [ handler, bool needsMachineWide ) : ExitCode?

Tries to run a command in another instance of Zero Install deployed on this system.

메소드 상세

Init() 공개 정적인 메소드

Common initialization code to be called by every Frontend executable right after startup.
public static Init ( ) : void
리턴 void

Run() 공개 정적인 메소드

Parses command-line arguments and performs the indicated action. Performs error handling.
public static Run ( [ exeName, [ args, [ handler ) : ExitCode
exeName [ The name of the executable to use as a reference in help messages and self-invokation.
args [ The arguments to be processed.
handler [ A callback object used when the the user needs to be asked questions or informed about download and IO tasks.
리턴 ExitCode