Class AutoUpdaterChecker
Inheritance
AutoUpdaterChecker
Assembly: LemonEdge.ClientCore.dll
Syntax
public class AutoUpdaterChecker : IAutoUpdaterChecker
Constructors
AutoUpdaterChecker(IReflectionHelper, IOptions<UpdaterSettings>)
Declaration
public AutoUpdaterChecker(IReflectionHelper reflectionHelper, IOptions<UpdaterSettings> updaterSettings)
Parameters
Properties
ShouldCheckForNewVersions
Check for new version if AutoUpdaterPath and UpdatePath is available
Declaration
public bool ShouldCheckForNewVersions { get; }
Property Value
Methods
DownloadAndUnPackPackage(string, string)
Downloads and extract files from package
Declaration
public Task DownloadAndUnPackPackage(string basePath, string packageName)
Parameters
Type |
Name |
Description |
string |
basePath |
Base Path from which package is to be downloaded
|
string |
packageName |
package name which is to be extracted after download
|
Returns
GetAppVersion()
Get App Version of the first executable assembly
Declaration
public string GetAppVersion()
Returns
GetAppVersion(Assembly)
Get App version of the particular assembly
Declaration
public string GetAppVersion(Assembly assem)
Parameters
Type |
Name |
Description |
Assembly |
assem |
Assembly which version is to be identified
|
Returns
GetLocalExeInfo()
Get App Name and Version from first executable assembly
Declaration
public (string Name, Version? Version) GetLocalExeInfo()
Returns
GetLocalUpdaterVersion()
Gets Local Updater Version from latestupdater.txt
Declaration
public Task<Version?> GetLocalUpdaterVersion()
Returns
GetReleaseDate()
Get Release Date from first executable assembly's version
Declaration
public string GetReleaseDate()
Returns
IsNewUpdaterVersionAvailable()
checks new updater version availability
Declaration
public Task<(bool NewVersionIsGreaterThanCurrent, string NewVersionPackageName)> IsNewUpdaterVersionAvailable()
Returns
IsNewVersionAvailable()
Checks New Application Version availability
Declaration
public Task<(bool NewVersionIsGreaterThanCurrent, string NewVersionPackageName)> IsNewVersionAvailable()
Returns
UpdateThisApp(string, string)
Update the app using AutoUpdater.exe
Declaration
public void UpdateThisApp(string updaterPackageName, string thisAppPackageName)
Parameters
Type |
Name |
Description |
string |
updaterPackageName |
|
string |
thisAppPackageName |
|
VerifyUpdates(IModelLayoutCommon, IRootController)
Verify for new available version and updates the app if it exist
Declaration
public Task VerifyUpdates(IModelLayoutCommon owner, IRootController controller)
Parameters
Returns
VersionToPackageName(Version)
Creates package name using app name and requested version
Declaration
public string VersionToPackageName(Version requestedVersion)
Parameters
Type |
Name |
Description |
Version |
requestedVersion |
version to be concatenated with app name to get package name
|
Returns
Implements
Extension Methods