Class ResourceStore
Inheritance
ResourceStore
Implements
IResourceStore
Assembly: Volo.Abp.IdentityServer.Domain.dll
Syntax
public class ResourceStore : IResourceStore
Constructors
ResourceStore(IIdentityResourceRepository, IObjectMapper<AbpIdentityServerDomainModule>, IApiResourceRepository, IApiScopeRepository, IDistributedCache<IdentityResource>, IDistributedCache<ApiScope>, IDistributedCache<ApiResource>, IDistributedCache<IEnumerable<ApiResource>>, IDistributedCache<Resources>, IOptions<IdentityServerOptions>)
Declaration
public ResourceStore(IIdentityResourceRepository identityResourceRepository, IObjectMapper<AbpIdentityServerDomainModule> objectMapper, IApiResourceRepository apiResourceRepository, IApiScopeRepository apiScopeRepository, IDistributedCache<IdentityResource> identityResourceCache, IDistributedCache<ApiScope> apiScopeCache, IDistributedCache<ApiResource> apiResourceCache, IDistributedCache<IEnumerable<ApiResource>> apiResourcesCache, IDistributedCache<Resources> resourcesCache, IOptions<IdentityServerOptions> options)
Parameters
Fields
AllResourcesKey
Declaration
public const string AllResourcesKey = "AllResources"
Field Value
ApiResourceNameCacheKeyPrefix
Declaration
public const string ApiResourceNameCacheKeyPrefix = "ApiResourceName_"
Field Value
ApiResourceScopeNameCacheKeyPrefix
Declaration
public const string ApiResourceScopeNameCacheKeyPrefix = "ApiResourceScopeName_"
Field Value
Properties
ApiResourceCache
Declaration
protected IDistributedCache<ApiResource> ApiResourceCache { get; }
Property Value
ApiResourceRepository
Declaration
protected IApiResourceRepository ApiResourceRepository { get; }
Property Value
ApiResourcesCache
Declaration
protected IDistributedCache<IEnumerable<ApiResource>> ApiResourcesCache { get; }
Property Value
ApiScopeCache
Declaration
protected IDistributedCache<ApiScope> ApiScopeCache { get; }
Property Value
ApiScopeRepository
Declaration
protected IApiScopeRepository ApiScopeRepository { get; }
Property Value
IdentityResourceCache
Declaration
protected IDistributedCache<IdentityResource> IdentityResourceCache { get; }
Property Value
IdentityResourceRepository
Declaration
protected IIdentityResourceRepository IdentityResourceRepository { get; }
Property Value
ObjectMapper
Declaration
protected IObjectMapper<AbpIdentityServerDomainModule> ObjectMapper { get; }
Property Value
Options
Declaration
protected IdentityServerOptions Options { get; }
Property Value
Type |
Description |
IdentityServerOptions |
|
ResourcesCache
Declaration
protected IDistributedCache<Resources> ResourcesCache { get; }
Property Value
Methods
AddCachePrefix(IEnumerable<string>, string)
Declaration
protected virtual IEnumerable<string> AddCachePrefix(IEnumerable<string> keys, string prefix)
Parameters
Returns
AddCachePrefix(string, string)
Declaration
protected virtual string AddCachePrefix(string key, string prefix)
Parameters
Returns
FindApiResourcesByNameAsync(IEnumerable<string>)
Declaration
public virtual Task<IEnumerable<ApiResource>> FindApiResourcesByNameAsync(IEnumerable<string> apiResourceNames)
Parameters
Returns
FindApiResourcesByScopeNameAsync(IEnumerable<string>)
Declaration
public virtual Task<IEnumerable<ApiResource>> FindApiResourcesByScopeNameAsync(IEnumerable<string> scopeNames)
Parameters
Returns
FindApiScopesByNameAsync(IEnumerable<string>)
Declaration
public virtual Task<IEnumerable<ApiScope>> FindApiScopesByNameAsync(IEnumerable<string> scopeNames)
Parameters
Returns
FindIdentityResourcesByScopeNameAsync(IEnumerable<string>)
Declaration
public virtual Task<IEnumerable<IdentityResource>> FindIdentityResourcesByScopeNameAsync(IEnumerable<string> scopeNames)
Parameters
Returns
GetAllResourcesAsync()
Declaration
public virtual Task<Resources> GetAllResourcesAsync()
Returns
Type |
Description |
Task<Resources> |
|
GetCacheItemsAsync<TEntity, TModel>(IDistributedCache<TModel>, IEnumerable<string>, Func<string[], Task<List<TEntity>>>, Func<List<TModel>, string, List<IEnumerable<KeyValuePair<string, TModel>>>>, string)
Declaration
protected virtual Task<IEnumerable<TModel>> GetCacheItemsAsync<TEntity, TModel>(IDistributedCache<TModel> cache, IEnumerable<string> keys, Func<string[], Task<List<TEntity>>> entityFactory, Func<List<TModel>, string, List<IEnumerable<KeyValuePair<string, TModel>>>> cacheItemsFactory, string cacheKeyPrefix = null) where TModel : class
Parameters
Returns
Type Parameters
Name |
Description |
TEntity |
|
TModel |
|
RemoveCachePrefix(IEnumerable<string>, string)
Declaration
protected virtual IEnumerable<string> RemoveCachePrefix(IEnumerable<string> keys, string prefix)
Parameters
Returns
RemoveCachePrefix(string, string)
Declaration
protected virtual string RemoveCachePrefix(string key, string prefix)
Parameters
Returns
Implements
IdentityServer4.Stores.IResourceStore
Extension Methods