Table of Contents

AddHttpExceptionDescriptorConverter Method

Definition

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

Adds an HttpExceptionDescriptor JSON converter to the collection.

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

Parameters

converters ICollection<JsonConverter>

The collection of JsonConverter to extend.

setup Action<ExceptionDescriptorOptions>

The ExceptionDescriptorOptions which may be configured.

Returns

ICollection<JsonConverter>

A reference to converters so that additional calls can be chained.