Search Results for

    Show / Hide Table of Contents

    Class AutoUpdaterChecker

    Inheritance
    object
    AutoUpdaterChecker
    Implements
    IAutoUpdaterChecker
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public class AutoUpdaterChecker : IAutoUpdaterChecker

    Constructors

    AutoUpdaterChecker(IReflectionHelper, IOptions<UpdaterSettings>)

    Declaration
    public AutoUpdaterChecker(IReflectionHelper reflectionHelper, IOptions<UpdaterSettings> updaterSettings)
    Parameters
    Type Name Description
    IReflectionHelper reflectionHelper
    IOptions<UpdaterSettings> updaterSettings

    Properties

    ShouldCheckForNewVersions

    Check for new version if AutoUpdaterPath and UpdatePath is available

    Declaration
    public bool ShouldCheckForNewVersions { get; }
    Property Value
    Type Description
    bool

    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
    Type Description
    Task

    GetAppVersion()

    Get App Version of the first executable assembly

    Declaration
    public string GetAppVersion()
    Returns
    Type Description
    string

    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
    Type Description
    string

    GetLocalExeInfo()

    Get App Name and Version from first executable assembly

    Declaration
    public (string Name, Version? Version) GetLocalExeInfo()
    Returns
    Type Description
    (string Name, Version Version)

    GetLocalUpdaterVersion()

    Gets Local Updater Version from latestupdater.txt

    Declaration
    public Task<Version?> GetLocalUpdaterVersion()
    Returns
    Type Description
    Task<Version>

    GetReleaseDate()

    Get Release Date from first executable assembly's version

    Declaration
    public string GetReleaseDate()
    Returns
    Type Description
    string

    IsNewUpdaterVersionAvailable()

    checks new updater version availability

    Declaration
    public Task<(bool NewVersionIsGreaterThanCurrent, string NewVersionPackageName)> IsNewUpdaterVersionAvailable()
    Returns
    Type Description
    Task<(bool IsValid, string ValidationFailureMessage)>

    IsNewVersionAvailable()

    Checks New Application Version availability

    Declaration
    public Task<(bool NewVersionIsGreaterThanCurrent, string NewVersionPackageName)> IsNewVersionAvailable()
    Returns
    Type Description
    Task<(bool IsValid, string ValidationFailureMessage)>

    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
    Type Name Description
    IModelLayoutCommon owner
    IRootController controller
    Returns
    Type Description
    Task

    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
    Type Description
    string

    Implements

    IAutoUpdaterChecker

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.