Table of Contents

Class AuthorizationServiceClientCacheService

Namespace
FoundationaLLM.Common.Services.Cache
Assembly
FoundationaLLM.Common.dll

Provides the caching services used by the FoundationaLLM authorization service client.

public class AuthorizationServiceClientCacheService : IAuthorizationServiceClientCacheService
Inheritance
AuthorizationServiceClientCacheService
Implements
Inherited Members
Extension Methods

Constructors

AuthorizationServiceClientCacheService(AuthorizationServiceClientSettings, ILogger)

Provides the caching services used by the FoundationaLLM authorization service client.

public AuthorizationServiceClientCacheService(AuthorizationServiceClientSettings settings, ILogger logger)

Parameters

settings AuthorizationServiceClientSettings

The AuthorizationServiceClientSettings used to configure the authorization service client.

logger ILogger

The ILogger used to log information.

Methods

SetValue(ActionAuthorizationRequest, ActionAuthorizationResult)

Sets an ActionAuthorizationResult in the cache.

public void SetValue(ActionAuthorizationRequest authorizationRequest, ActionAuthorizationResult result)

Parameters

authorizationRequest ActionAuthorizationRequest

The ActionAuthorizationRequest key used to set the authorization result in the cache.

result ActionAuthorizationResult

TryGetValue(ActionAuthorizationRequest, out ActionAuthorizationResult?)

Attempts to retrieve an ActionAuthorizationResult from the cache.

public bool TryGetValue(ActionAuthorizationRequest authorizationRequest, out ActionAuthorizationResult? authorizationResult)

Parameters

authorizationRequest ActionAuthorizationRequest

The ActionAuthorizationRequest key used to identify the authorization result in the cache.

authorizationResult ActionAuthorizationResult

The ActionAuthorizationResult to be retrieved.

Returns

bool

true if the value was found in the cache, false otherwise.