Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface Microsoft.​AspNetCore.​Http.​IProblemDetailsWriter

Assembly: Microsoft.AspNetCore.Http.Abstractions

Defines a type that write a <see cref="T:Microsoft.AspNetCore.Mvc.ProblemDetails" /> payload to the current <see cref="P:Microsoft.AspNetCore.Http.HttpContext.Response" /> .

Methods

WriteAsync​(ProblemDetailsContext context)
Write a <see cref="T:Microsoft.AspNetCore.Mvc.ProblemDetails" /> response to the current context
context The <see cref="T:Microsoft.AspNetCore.Http.ProblemDetailsContext" /> associated with the current request/response.
bool
CanWrite​(ProblemDetailsContext context)
Determines whether this instance can write a <see cref="T:Microsoft.AspNetCore.Mvc.ProblemDetails" /> to the current context.
Returns Flag that indicates if that the writer can write to the current <see cref="T:Microsoft.AspNetCore.Http.ProblemDetailsContext" /> .
context The <see cref="T:Microsoft.AspNetCore.Http.ProblemDetailsContext" /> associated with the current request/response.