#### [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')

## EndSessionResponseFormatter Class

Provides a response formatter for end\-session requests, which is part of the OpenID Connect protocol\.

```csharp
public class EndSessionResponseFormatter : Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IEndSessionResponseFormatter
```

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

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

## EndSessionResponseFormatter\(IFrontChannelLogoutService\) Constructor {#Abblix.Oidc.Server.Mvc.Formatters.EndSessionResponseFormatter.EndSessionResponseFormatter(Abblix.Oidc.Server.Features.LogoutNotification.IFrontChannelLogoutService)}

Provides a response formatter for end\-session requests, which is part of the OpenID Connect protocol\.

```csharp
public EndSessionResponseFormatter(Abblix.Oidc.Server.Features.LogoutNotification.IFrontChannelLogoutService frontChannelLogoutService);
```
#### Parameters

###### `frontChannelLogoutService` [IFrontChannelLogoutService](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.LogoutNotification.IFrontChannelLogoutService 'Abblix\.Oidc\.Server\.Features\.LogoutNotification\.IFrontChannelLogoutService') {#Abblix.Oidc.Server.Mvc.Formatters.EndSessionResponseFormatter.EndSessionResponseFormatter(Abblix.Oidc.Server.Features.LogoutNotification.IFrontChannelLogoutService).frontChannelLogoutService}

Service for generating front\-channel logout HTML responses\.
### Methods

## EndSessionResponseFormatter\.FormatResponseAsync\(EndSessionRequest, Result\<EndSessionSuccess,OidcError\>\) Method {#Abblix.Oidc.Server.Mvc.Formatters.EndSessionResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.EndSessionRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.EndSession.Interfaces.EndSessionSuccess,Abblix.Oidc.Server.Common.OidcError_)}

Formats an end\-session response asynchronously based on the provided response model\.

```csharp
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult> FormatResponseAsync(Abblix.Oidc.Server.Model.EndSessionRequest request, Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.EndSession.Interfaces.EndSessionSuccess,Abblix.Oidc.Server.Common.OidcError> response);
```
#### Parameters

###### `request` [EndSessionRequest](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Model.EndSessionRequest 'Abblix\.Oidc\.Server\.Model\.EndSessionRequest') {#Abblix.Oidc.Server.Mvc.Formatters.EndSessionResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.EndSessionRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.EndSession.Interfaces.EndSessionSuccess,Abblix.Oidc.Server.Common.OidcError_).request}

The end\-session request\.

###### `response` [Abblix\.Utils\.Result&lt;](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2')[EndSessionSuccess](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.EndSession.Interfaces.EndSessionSuccess 'Abblix\.Oidc\.Server\.Endpoints\.EndSession\.Interfaces\.EndSessionSuccess')[,](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2')[OidcError](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.OidcError 'Abblix\.Oidc\.Server\.Common\.OidcError')[&gt;](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2') {#Abblix.Oidc.Server.Mvc.Formatters.EndSessionResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.EndSessionRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.EndSession.Interfaces.EndSessionSuccess,Abblix.Oidc.Server.Common.OidcError_).response}

The end\-session response model\.

Implements [FormatResponseAsync\(EndSessionRequest, Result&lt;EndSessionSuccess,OidcError&gt;\)](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IEndSessionResponseFormatter#Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IEndSessionResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.EndSessionRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.EndSession.Interfaces.EndSessionSuccess,Abblix.Oidc.Server.Common.OidcError_) 'Abblix\.Oidc\.Server\.Mvc\.Formatters\.Interfaces\.IEndSessionResponseFormatter\.FormatResponseAsync\(Abblix\.Oidc\.Server\.Model\.EndSessionRequest, Abblix\.Utils\.Result\<Abblix\.Oidc\.Server\.Endpoints\.EndSession\.Interfaces\.EndSessionSuccess,Abblix\.Oidc\.Server\.Common\.OidcError\>\)')

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