Table of Contents

Class CacheHelper

Namespace
Arc4u.OAuth2.Token
Assembly
Arc4u.OAuth2.dll

Default ICacheHelper: resolves the cache named by CacheName, and falls back to the default cache.

[Export(typeof(ICacheHelper))]
[Shared]
public class CacheHelper : ICacheHelper
Inheritance
CacheHelper
Implements
Inherited Members

Constructors

CacheHelper(ICacheContext, ILogger<CacheHelper>, IOptions<TokenCacheOptions>)

Initializes a new instance of the CacheHelper class.

public CacheHelper(ICacheContext cacheContext, ILogger<CacheHelper> logger, IOptions<TokenCacheOptions> options)

Parameters

cacheContext ICacheContext

The context giving access to the registered caches.

logger ILogger<CacheHelper>

The logger.

options IOptions<TokenCacheOptions>

The token cache options.

Methods

GetCache()

Gets the cache used to store the tokens.

public ICache GetCache()

Returns

ICache

The token cache.