Search Results for

    Show / Hide Table of Contents

    Interface ICacheManager

    Namespace: LemonEdge.Client.UI.API.Cache
    Assembly: LemonEdge.Client.UI.API.dll
    Syntax
    public interface ICacheManager

    Methods

    CreateCache(IEntityUpdater)

    Creates a cache

    Declaration
    IReadOnlyCache CreateCache(IEntityUpdater context)
    Parameters
    Type Name Description
    IEntityUpdater context
    Returns
    Type Description
    IReadOnlyCache

    ReLoadCache(Action<string>, Action<string>, Func<Exception, Task>, bool, bool)

    Reloads the current global cache for the application

    Declaration
    Task<LicenseResult> ReLoadCache(Action<string> loadingUpdate, Action<string> licenseUpdate, Func<Exception, Task> processException, bool forceRefresh = false, bool keepCurrentIfValidCache = true)
    Parameters
    Type Name Description
    Action<string> loadingUpdate

    An action to notify a listener of the progress reloading the cache

    Action<string> licenseUpdate

    An action to notify a listener of the license status once loaded

    Func<Exception, Task> processException
    bool forceRefresh

    If false the cache will be loaded from a local copy, unless one does not exist or it is out of date. Otherwise it will always be loaded from the system again.

    bool keepCurrentIfValidCache

    Indicates if the cache is current, then not to bother reloading it at all either locally or from the service

    Returns
    Type Description
    Task<LicenseResult>

    A task indicating the completion of the operation

    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.