Table of Contents

Interface IAuthorizationServiceClientCacheService

Namespace
FoundationaLLM.Common.Interfaces
Assembly
FoundationaLLM.Common.dll

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

public interface IAuthorizationServiceClientCacheService
Extension Methods

Methods

SetValue(ActionAuthorizationRequest, ActionAuthorizationResult)

Sets an ActionAuthorizationResult in the cache.

void SetValue(ActionAuthorizationRequest authorizationRequest, ActionAuthorizationResult authorizationResult)

Parameters

authorizationRequest ActionAuthorizationRequest

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

authorizationResult ActionAuthorizationResult

The ActionAuthorizationResult to be set.

TryGetValue(ActionAuthorizationRequest, out ActionAuthorizationResult?)

Attempts to retrieve an ActionAuthorizationResult from the cache.

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.