Skip to content

CheckSessionResponseCachingDecorator Class

A decorator class that adds caching functionality to the Check Session response formatting process.

C#
public class CheckSessionResponseCachingDecorator : Abblix.Oidc.Server.Mvc.Formatters.Interfaces.ICheckSessionResponseFormatter

Inheritance System.Object → CheckSessionResponseCachingDecorator

Implements ICheckSessionResponseFormatter

Constructors

CheckSessionResponseCachingDecorator(ICheckSessionResponseFormatter, ICheckSessionResponseCache) Constructor

A decorator class that adds caching functionality to the Check Session response formatting process.

C#
public CheckSessionResponseCachingDecorator(Abblix.Oidc.Server.Mvc.Formatters.Interfaces.ICheckSessionResponseFormatter inner, Abblix.Oidc.Server.Mvc.Features.SessionManagement.ICheckSessionResponseCache cache);

Parameters

inner ICheckSessionResponseFormatter

The inner Check Session response formatter.

cache ICheckSessionResponseCache

The cache used to store formatted responses.

Methods

CheckSessionResponseCachingDecorator.FormatResponseAsync(CheckSessionResponse) Method

Formats a Check Session response and caches the formatted result using the provided response's cache key.

C#
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult> FormatResponseAsync(Abblix.Oidc.Server.Endpoints.CheckSession.Interfaces.CheckSessionResponse response);

Parameters

response CheckSessionResponse

The Check Session response to be formatted.

Implements FormatResponseAsync(CheckSessionResponse)

Returns

System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult>
A System.Threading.Tasks.Task<> representing the asynchronous operation. The task result contains the formatted ActionResult, either retrieved from the cache or generated by the inner formatter.