Table of Contents

AddExceptionDescriptorConverter Method

Definition

AddExceptionDescriptorConverter(IDecorator<IList<XmlConverter>>, Action<ExceptionDescriptorOptions>)

Adds an ExceptionDescriptor XML converter to the enclosed IList<T> of the specified decorator.

public static IDecorator<IList<XmlConverter>> AddExceptionDescriptorConverter(this IDecorator<IList<XmlConverter>> decorator, Action<ExceptionDescriptorOptions> setup)

Parameters

decorator IDecorator<IList<XmlConverter>>

The decorator that wraps the IList<T> to extend.

setup Action<ExceptionDescriptorOptions>

The ExceptionDescriptorOptions which need to be configured.

Returns

IDecorator<IList<XmlConverter>>

A reference to decorator after the operation has completed.

Exceptions

ArgumentNullException

decorator cannot be null.