C# Класс NuSelfUpdate.AppUpdaterBuilder

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

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

Метод Описание
AppUpdaterBuilder ( string appPackageId ) : System
Build ( ) : AppUpdater

Build the AppUpdater with the configured options.

CommandLineInfoProvidedBy ( ICommandLineWrapper commandLineWrapper ) : AppUpdaterBuilder

Control how the AppUpdater will determine what the current command line arguments are. This use used for the LaunchInstalledUpdate feature.

CreatePackageRepositoriesWith ( IPackageRepositoryFactory repositoryFactory ) : AppUpdaterBuilder

Provide an alternative IPackageRepositoryFactory if you need to customize how the AppUpdater will create a package repository IPackageRepository.

CurrentVersionProvidedBy ( IAppVersionProvider appVersionProvider ) : AppUpdaterBuilder

Control how the AppUpdater will determine what the current version of the application is. The default is to use the assembly version of the entry assembly.

FileSystemAccessedThrough ( IExtendedFileSystem fileSystem ) : AppUpdaterBuilder

Control how the AppUpdater will access the file system.

RelaunchAppWith ( IProcessWrapper processWrapper ) : AppUpdaterBuilder

Control how the AppUpdater will launch the new process when using the LaunchInstalledUpdater feature.

SourceUpdatesFrom ( string packageSource ) : AppUpdaterBuilder

Set the packageSource which will be used when creating the package repository. The default is to use the public NuGet repository.

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

Метод Описание
GetAppDir ( ) : string

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

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

public AppUpdaterBuilder ( string appPackageId ) : System
appPackageId string The id of the package this applications updates are published to.
Результат System

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

Build the AppUpdater with the configured options.
public Build ( ) : AppUpdater
Результат AppUpdater

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

Control how the AppUpdater will determine what the current command line arguments are. This use used for the LaunchInstalledUpdate feature.
public CommandLineInfoProvidedBy ( ICommandLineWrapper commandLineWrapper ) : AppUpdaterBuilder
commandLineWrapper ICommandLineWrapper
Результат AppUpdaterBuilder

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

Provide an alternative IPackageRepositoryFactory if you need to customize how the AppUpdater will create a package repository IPackageRepository.
public CreatePackageRepositoriesWith ( IPackageRepositoryFactory repositoryFactory ) : AppUpdaterBuilder
repositoryFactory IPackageRepositoryFactory
Результат AppUpdaterBuilder

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

Control how the AppUpdater will determine what the current version of the application is. The default is to use the assembly version of the entry assembly.
public CurrentVersionProvidedBy ( IAppVersionProvider appVersionProvider ) : AppUpdaterBuilder
appVersionProvider IAppVersionProvider
Результат AppUpdaterBuilder

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

Control how the AppUpdater will access the file system.
public FileSystemAccessedThrough ( IExtendedFileSystem fileSystem ) : AppUpdaterBuilder
fileSystem IExtendedFileSystem
Результат AppUpdaterBuilder

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

Control how the AppUpdater will launch the new process when using the LaunchInstalledUpdater feature.
public RelaunchAppWith ( IProcessWrapper processWrapper ) : AppUpdaterBuilder
processWrapper IProcessWrapper
Результат AppUpdaterBuilder

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

Set the packageSource which will be used when creating the package repository. The default is to use the public NuGet repository.
public SourceUpdatesFrom ( string packageSource ) : AppUpdaterBuilder
packageSource string
Результат AppUpdaterBuilder