Table of Contents

AddHttpExceptionDescriptorConverter Method

Definition

AddHttpExceptionDescriptorConverter(ICollection<JsonConverter>, Action<ExceptionDescriptorOptions>)

Adds an HttpExceptionDescriptor JSON converter to the list.

public static ICollection<JsonConverter> AddHttpExceptionDescriptorConverter(this ICollection<JsonConverter> converters, Action<ExceptionDescriptorOptions> setup = null)

Parameters

converters ICollection<JsonConverter>

The ICollection<T> to extend.

setup Action<ExceptionDescriptorOptions>

The ExceptionDescriptorOptions which may be configured.

Returns

ICollection<JsonConverter>

A reference to converters after the operation has completed.