C# Class NuSelfUpdate.AppUpdaterBuilder

Exibir arquivo Open project: caleb-vear/NuSelfUpdate Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
GetAppDir ( ) : string

Method Details

AppUpdaterBuilder() public method

public AppUpdaterBuilder ( string appPackageId ) : System
appPackageId string The id of the package this applications updates are published to.
return System

Build() public method

Build the AppUpdater with the configured options.
public Build ( ) : AppUpdater
return AppUpdater

CommandLineInfoProvidedBy() public method

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
return AppUpdaterBuilder

CreatePackageRepositoriesWith() public method

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
return AppUpdaterBuilder

CurrentVersionProvidedBy() public method

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
return AppUpdaterBuilder

FileSystemAccessedThrough() public method

Control how the AppUpdater will access the file system.
public FileSystemAccessedThrough ( IExtendedFileSystem fileSystem ) : AppUpdaterBuilder
fileSystem IExtendedFileSystem
return AppUpdaterBuilder

RelaunchAppWith() public method

Control how the AppUpdater will launch the new process when using the LaunchInstalledUpdater feature.
public RelaunchAppWith ( IProcessWrapper processWrapper ) : AppUpdaterBuilder
processWrapper IProcessWrapper
return AppUpdaterBuilder

SourceUpdatesFrom() public method

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
return AppUpdaterBuilder