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

## RevocationResponseFormatter Class

Formats token revocation results as [Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult'): an empty 200 on success, or the RFC\-compliant OAuth
error on failure\.

```csharp
public class RevocationResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IRevocationResponseFormatter
```

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

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

## RevocationResponseFormatter\(IIssuerProvider\) Constructor {#Abblix.Oidc.Server.MinimalApi.Formatters.RevocationResponseFormatter.RevocationResponseFormatter(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider)}

Formats token revocation results as [Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult'): an empty 200 on success, or the RFC\-compliant OAuth
error on failure\.

```csharp
public RevocationResponseFormatter(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider issuerProvider);
```
#### Parameters

###### `issuerProvider` [IIssuerProvider](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Issuer.IIssuerProvider 'Abblix\.Oidc\.Server\.Features\.Issuer\.IIssuerProvider') {#Abblix.Oidc.Server.MinimalApi.Formatters.RevocationResponseFormatter.RevocationResponseFormatter(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider).issuerProvider}

Supplies the issuer used as the realm on client\-authentication challenges\.
### Methods

## RevocationResponseFormatter\.FormatResponseAsync\(RevocationRequest, Result\<TokenRevoked,OidcError\>\) Method {#Abblix.Oidc.Server.MinimalApi.Formatters.RevocationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.RevocationRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.TokenRevoked,Abblix.Oidc.Server.Common.OidcError_)}

Formats the revocation result \(empty 200 on success, OAuth error otherwise\)\.

```csharp
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult> FormatResponseAsync(Abblix.Oidc.Server.Model.RevocationRequest request, Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.TokenRevoked,Abblix.Oidc.Server.Common.OidcError> response);
```
#### Parameters

###### `request` [RevocationRequest](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Model.RevocationRequest 'Abblix\.Oidc\.Server\.Model\.RevocationRequest') {#Abblix.Oidc.Server.MinimalApi.Formatters.RevocationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.RevocationRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.TokenRevoked,Abblix.Oidc.Server.Common.OidcError_).request}

###### `response` [Abblix\.Utils\.Result&lt;](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2')[TokenRevoked](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.TokenRevoked 'Abblix\.Oidc\.Server\.Endpoints\.Revocation\.Interfaces\.TokenRevoked')[,](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.MinimalApi.Formatters.RevocationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.RevocationRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.TokenRevoked,Abblix.Oidc.Server.Common.OidcError_).response}

Implements [FormatResponseAsync\(RevocationRequest, Result&lt;TokenRevoked,OidcError&gt;\)](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi/Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IRevocationResponseFormatter#Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IRevocationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.RevocationRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.TokenRevoked,Abblix.Oidc.Server.Common.OidcError_) 'Abblix\.Oidc\.Server\.MinimalApi\.Formatters\.Interfaces\.IRevocationResponseFormatter\.FormatResponseAsync\(Abblix\.Oidc\.Server\.Model\.RevocationRequest, Abblix\.Utils\.Result\<Abblix\.Oidc\.Server\.Endpoints\.Revocation\.Interfaces\.TokenRevoked,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\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')
