C# Класс ZeroInstall.Commands.ProgramUtils

Provides utility methods for application entry points.
Показать файл Открыть проект

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