C# Класс withSIX.Play.Applications.Services.SelfUpdater

Наследование: ISelfUpdater, IEnableLogging, IApplicationService
Показать файл Открыть проект

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

Свойство Тип Описание
PlayExecutable string

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

Метод Описание
ApplyInstallIfRequired ( IAbsoluteFilePath exePath ) : bool
CheckForUpdate ( ) : System.Threading.Tasks.Task
ExistsAndIsValid ( IAbsoluteFilePath exePath ) : bool
GetLocalVersion ( ) : System.Version
IsInstalled ( ) : bool
IsLegacyInstalled ( ) : bool
IsLocalUpdate ( string exePath ) : bool
PerformSelfUpdate ( string action = SelfUpdaterCommands.UpdateCommand ) : bool
ProgramApplyUpdateIfExists ( IAbsoluteFilePath exePath ) : Task
SelfUpdater ( Func enableBeta, IEventAggregator eventBus, IProcessManager processManager, IFileDownloader downloader, IMediator mediator, ExportFactory webClientFactory, IRestarter restarter ) : System
UninstallSingleExe ( ) : bool

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

Метод Описание
Apply ( IAbsoluteFilePath exePath = null ) : bool
ApplyMSI ( ) : bool
ApplySingleExeMode ( IAbsoluteFilePath exePath ) : bool
ApplyUpdateIfExists ( IAbsoluteFilePath exePath ) : Task
CheckForUpdateInternal ( ) : Task
Cleanup ( ) : void
CleanupDest ( ) : void
CleanupInfo ( ) : void
CleanupLegacyRegistry ( ) : void
CreateShortcut ( IAbsoluteDirectoryPath destinationPath, IAbsoluteFilePath installExe ) : void
DeleteApplicationShortcuts ( ) : void
DownloadAndProcessVersion ( IWebClient checkForUpdateClient, Uri uri ) : Task
DownloadUpdate ( VersionCheckCompleteEventArgs a ) : System.Threading.Tasks.Task
GetAppLocalVersion ( IAbsoluteFilePath exePath ) : System.Version
GetApplyMsiParameters ( ) : string
GetLocalPath ( ) : string
GetLocalProduct ( ) : string
GetLocalRegVersion ( ) : System.Version
GetUninstallParameters ( ) : string
GetVersionCheckUri ( bool beta = false ) : Uri
InstallToProgramFiles ( IAbsoluteFilePath exeFile ) : bool
OnComplete ( string newVersion, string newProductCode, string hash, bool isNew, bool isSameProductCode ) : VersionCheckCompleteEventArgs
PublishDomainEvent ( IAsyncNotification evt ) : void
PublishDomainEvent ( INotification evt ) : void
RegisterLocalAppKeys ( IAbsoluteFilePath exePath ) : void
TryCheckForUpdate ( ) : System.Threading.Tasks.Task
TryCheckForUpdate ( IWebClient checkForUpdateClient, Uri uri ) : Task
TryDownloadUpdate ( VersionCheckCompleteEventArgs a, string filePath ) : System.Threading.Tasks.Task
TryGetVersionFromFile ( IAbsoluteFilePath exePath ) : System.Version
TryParseVersion ( string version ) : System.Version
TryParseVersionInfo ( ) : VersionCheckCompleteEventArgs
TryRunUpdater ( IAbsoluteFilePath executable ) : bool
TryUninstallLegacyMSI ( string parameters ) : bool
UninstallLegacyMSI ( ) : bool
VersionCheckerComplete ( VersionCheckCompleteEventArgs args ) : System.Threading.Tasks.Task

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

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

public ApplyInstallIfRequired ( IAbsoluteFilePath exePath ) : bool
exePath IAbsoluteFilePath
Результат bool

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

public CheckForUpdate ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

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

public ExistsAndIsValid ( IAbsoluteFilePath exePath ) : bool
exePath IAbsoluteFilePath
Результат bool

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

public GetLocalVersion ( ) : System.Version
Результат System.Version

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

public IsInstalled ( ) : bool
Результат bool

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

public IsLegacyInstalled ( ) : bool
Результат bool

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

public IsLocalUpdate ( string exePath ) : bool
exePath string
Результат bool

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

public PerformSelfUpdate ( string action = SelfUpdaterCommands.UpdateCommand ) : bool
action string
Результат bool

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

public ProgramApplyUpdateIfExists ( IAbsoluteFilePath exePath ) : Task
exePath IAbsoluteFilePath
Результат Task

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

public SelfUpdater ( Func enableBeta, IEventAggregator eventBus, IProcessManager processManager, IFileDownloader downloader, IMediator mediator, ExportFactory webClientFactory, IRestarter restarter ) : System
enableBeta Func
eventBus IEventAggregator
processManager IProcessManager
downloader IFileDownloader
mediator IMediator
webClientFactory ExportFactory
restarter IRestarter
Результат System

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

public UninstallSingleExe ( ) : bool
Результат bool

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

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

public static string PlayExecutable
Результат string