#### [Abblix\.Oidc\.Server\.Mvc](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc 'index')
### [Abblix\.Oidc\.Server\.Mvc\.Formatters\.Interfaces](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Formatters.Interfaces 'Abblix\.Oidc\.Server\.Mvc\.Formatters\.Interfaces')

## ICheckSessionResponseFormatter Interface

Defines an interface for formatting a response to a low\-level object with the content of an OpenID Provider \(OP\) check\-session frame\.

```csharp
public interface ICheckSessionResponseFormatter
```

Derived  
↳ [CheckSessionResponseCachingDecorator](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Features.SessionManagement.CheckSessionResponseCachingDecorator 'Abblix\.Oidc\.Server\.Mvc\.Features\.SessionManagement\.CheckSessionResponseCachingDecorator')  
↳ [CheckSessionResponseFormatter](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Formatters.CheckSessionResponseFormatter 'Abblix\.Oidc\.Server\.Mvc\.Formatters\.CheckSessionResponseFormatter')
### Methods

## ICheckSessionResponseFormatter\.FormatResponseAsync\(CheckSessionResponse\) Method {#Abblix.Oidc.Server.Mvc.Formatters.Interfaces.ICheckSessionResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Endpoints.CheckSession.Interfaces.CheckSessionResponse)}

Formats a response asynchronously to a low\-level object with the content of an OpenID Provider \(OP\) check\-session frame\.

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

###### `response` [CheckSessionResponse](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.CheckSession.Interfaces.CheckSessionResponse 'Abblix\.Oidc\.Server\.Endpoints\.CheckSession\.Interfaces\.CheckSessionResponse') {#Abblix.Oidc.Server.Mvc.Formatters.Interfaces.ICheckSessionResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Endpoints.CheckSession.Interfaces.CheckSessionResponse).response}

The check\-session response to be formatted\.

#### Returns
[System\.Threading\.Tasks\.Task&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')[Microsoft\.AspNetCore\.Mvc\.ActionResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.actionresult 'Microsoft\.AspNetCore\.Mvc\.ActionResult')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')  
A [System\.Threading\.Tasks\.Task](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task 'System\.Threading\.Tasks\.Task') representing the asynchronous operation, with the formatted response as an [Microsoft\.AspNetCore\.Mvc\.ActionResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.actionresult 'Microsoft\.AspNetCore\.Mvc\.ActionResult')\.
