IProblemDetailsWriter Interface

Definition

Defines a type that write a ProblemDetails payload to the current Response.

C#
public interface IProblemDetailsWriter

Methods

CanWrite(ProblemDetailsContext)

Determines whether this instance can write a ProblemDetails to the current context.

WriteAsync(ProblemDetailsContext)

Write a ProblemDetails response to the current context

Applies to

Product Versions
ASP.NET Core 7.0, 8.0, 9.0