Interface IAutoUpdaterChecker
Used to check if a new version of the application that is running is available for download, and can also download it.
Namespace: LemonEdge.Client.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
public interface IAutoUpdaterChecker
Properties
ShouldCheckForNewVersions
Check for new version if AutoUpdaterPath and UpdatePath is available
Declaration
bool ShouldCheckForNewVersions { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
DownloadAndUnPackPackage(string, string)
Downloads and extract files from package
Declaration
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
Type | Description |
---|---|
Task |
GetAppVersion()
Get App Version of the first executable assembly
Declaration
string GetAppVersion()
Returns
Type | Description |
---|---|
string |
GetAppVersion(Assembly)
Get App version of the particular assembly
Declaration
string GetAppVersion(Assembly assem)
Parameters
Type | Name | Description |
---|---|---|
Assembly | assem | Assembly which version is to be identified |
Returns
Type | Description |
---|---|
string |
GetLocalExeInfo()
Get App Name and Version from first executable assembly
Declaration
(string Name, Version? Version) GetLocalExeInfo()
Returns
Type | Description |
---|---|
(string Name, Version Version) |
GetLocalUpdaterVersion()
Gets Local Updater Version from latestupdater.txt
Declaration
Task<Version?> GetLocalUpdaterVersion()
Returns
Type | Description |
---|---|
Task<Version> |
GetReleaseDate()
Get Release Date from first executable assembly's version
Declaration
string GetReleaseDate()
Returns
Type | Description |
---|---|
string |
IsNewUpdaterVersionAvailable()
checks new updater version availability
Declaration
Task<(bool NewVersionIsGreaterThanCurrent, string NewVersionPackageName)> IsNewUpdaterVersionAvailable()
Returns
Type | Description |
---|---|
Task<(bool NewVersionIsGreaterThanCurrent, string NewVersionPackageName)> |
IsNewVersionAvailable()
Checks New Application Version availability
Declaration
Task<(bool NewVersionIsGreaterThanCurrent, string NewVersionPackageName)> IsNewVersionAvailable()
Returns
Type | Description |
---|---|
Task<(bool NewVersionIsGreaterThanCurrent, string NewVersionPackageName)> |
UpdateThisApp(string, string)
Update the app using AutoUpdater.exe
Declaration
void UpdateThisApp(string updaterPackageName, string thisAppPackageName)
Parameters
Type | Name | Description |
---|---|---|
string | updaterPackageName | |
string | thisAppPackageName |
VerifyUpdates(IModelLayoutCommon, IModelController)
Verify for new available version and updates the app if it exist
Declaration
Task VerifyUpdates(IModelLayoutCommon owner, IModelController controller)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutCommon | owner | |
IModelController | controller |
Returns
Type | Description |
---|---|
Task |
VersionToPackageName(Version)
Creates package name using app name and requested version
Declaration
string VersionToPackageName(Version requestedVersion)
Parameters
Type | Name | Description |
---|---|---|
Version | requestedVersion | version to be concatenated with app name to get package name |
Returns
Type | Description |
---|---|
string |