IProblemDetailsService Interface

Definition

Defines a type that provide functionality to create a ProblemDetails response.

C#
public interface IProblemDetailsService

Methods

TryWriteAsync(ProblemDetailsContext)

Try to write a ProblemDetails response to the current context, using the registered IProblemDetailsWriter services.

WriteAsync(ProblemDetailsContext)

Write a ProblemDetails response to the current context, using the registered IProblemDetailsWriter services.

Applies to

Product Versions
ASP.NET Core 7.0, 8.0, 9.0