IProblemDetailsWriter 接口

定义

定义将有效负载写入 ProblemDetails 当前 Response的类型。

public interface IProblemDetailsWriter
type IProblemDetailsWriter = interface
Public Interface IProblemDetailsWriter

方法

CanWrite(ProblemDetailsContext)

确定此实例是否可以将 写入 ProblemDetails 当前上下文。

WriteAsync(ProblemDetailsContext)

编写 ProblemDetails 对当前上下文的响应

适用于