Table of Contents

WriteExceptionDescriptorResponseAsync Method

Definition

WriteExceptionDescriptorResponseAsync(IDecorator<HttpContext>, HttpExceptionDescriptorResponseHandler, HttpExceptionDescriptor, CancellationToken)

Invokes and write the result from the specified handler to the response body. Not intended to be used directly from your code.

public static Task WriteExceptionDescriptorResponseAsync(this IDecorator<HttpContext> decorator, HttpExceptionDescriptorResponseHandler handler, HttpExceptionDescriptor exceptionDescriptor, CancellationToken ct)

Parameters

decorator IDecorator<HttpContext>

The IDecorator<T> to extend.

handler HttpExceptionDescriptorResponseHandler

The HttpExceptionDescriptorResponseHandler that holds the content negotiation response.

exceptionDescriptor HttpExceptionDescriptor

The HttpExceptionDescriptor that provides information about an Exception.

ct CancellationToken

The cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task

A Task representing the asynchronous operation.