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

## CheckSessionResponseFormatter Class

Provides a response formatter for Check Session frames, generating a per\-request CSP nonce
to protect the inline script from XSS attacks\.

```csharp
public class CheckSessionResponseFormatter : Abblix.Oidc.Server.Mvc.Formatters.Interfaces.ICheckSessionResponseFormatter
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → CheckSessionResponseFormatter

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

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

Formats a response for a Check Session frame asynchronously\.

```csharp
public 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.CheckSessionResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Endpoints.CheckSession.Interfaces.CheckSessionResponse).response}

The Check Session response containing HTML content\.

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

#### 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')\.
