Table of Contents

Class HttpExceptionDescriptorResponseHandlerDecoratorExtensions

Namespace
Cuemon.AspNetCore.Diagnostics
Assembly
Cuemon.AspNetCore.dll

Extension methods for the HttpExceptionDescriptorResponseHandler class hidden behind the IDecorator<T> interface.

public static class HttpExceptionDescriptorResponseHandlerDecoratorExtensions
Inheritance
Object
HttpExceptionDescriptorResponseHandlerDecoratorExtensions

Methods

AddResponseHandler(IDecorator<ICollection<HttpExceptionDescriptorResponseHandler>>, Action<HttpExceptionDescriptorResponseHandlerOptions>)

Adds an HttpExceptionDescriptorResponseHandler to the underlying list of HttpExceptionDescriptorResponseHandler from the specified the decorator.

public static ICollection<HttpExceptionDescriptorResponseHandler> AddResponseHandler(this IDecorator<ICollection<HttpExceptionDescriptorResponseHandler>> decorator, Action<HttpExceptionDescriptorResponseHandlerOptions> setup)

Parameters

decorator IDecorator<ICollection<HttpExceptionDescriptorResponseHandler>>

The IDecorator<T> to extend.

setup Action<HttpExceptionDescriptorResponseHandlerOptions>

The HttpExceptionDescriptorResponseHandlerOptions that needs to be configured.

Returns

ICollection<HttpExceptionDescriptorResponseHandler>

A reference to IDecorator.Inner of decorator so that additional calls can be chained.

Exceptions

System.ArgumentNullException

decorator cannot be null - or - IDecorator.Inner property of decorator cannot be null - or - setup cannot be null.

System.ArgumentException

setup failed to configure an instance of HttpExceptionDescriptorResponseHandlerOptions in a valid state.

See Also