Show / Hide Table of Contents

    Class MemoryCacheUserInfoUpdaterCache

    This implementation of the IUserInfoUpdater uses the Asp.Net Core internally

    Inheritance
    System.Object
    MemoryCacheUserInfoUpdaterCache
    Implements
    IUserInfoUpdaterCache
    Namespace: Dangl.Identity.Client.Mvc.Services
    Assembly: Dangl.Identity.Client.Mvc.dll
    Syntax
    public class MemoryCacheUserInfoUpdaterCache : object, IUserInfoUpdaterCache

    Constructors

    | Improve this Doc View Source

    MemoryCacheUserInfoUpdaterCache(IMemoryCache)

    This implementation of the IUserInfoUpdater uses the Asp.Net Core internally

    Declaration
    public MemoryCacheUserInfoUpdaterCache(IMemoryCache memoryCache)
    Parameters
    Type Name Description
    IMemoryCache memoryCache

    Methods

    | Improve this Doc View Source

    CacheUserIdAsync(Guid, DateTime)

    Caches the UserId with a given expiration time

    Declaration
    public Task CacheUserIdAsync(Guid userId, DateTime expiration)
    Parameters
    Type Name Description
    Guid userId
    DateTime expiration
    Returns
    Type Description
    Task
    | Improve this Doc View Source

    HasUserIdCachedAsync(Guid)

    Returns true if the UserId is in the cache

    Declaration
    public Task<bool> HasUserIdCachedAsync(Guid userId)
    Parameters
    Type Name Description
    Guid userId
    Returns
    Type Description
    Task<System.Boolean>

    Implements

    IUserInfoUpdaterCache

    Extension Methods

    ObjectExtensions.Clone<T>(T)
    • Improve this Doc
    • View Source
    Back to top © Dangl IT GmbH