Table of Contents

AddFaultDescriptor Method

Definition

Namespace
Cuemon.Extensions.AspNetCore.Mvc.Filters
Assemblies
Cuemon.Extensions.AspNetCore.Mvc.dll
Source
src/Cuemon.Extensions.AspNetCore.Mvc/Filters/FilterCollectionExtensions.cs

AddFaultDescriptor(FilterCollection)

Adds a FaultDescriptorFilter to the filters handled in the MVC request pipeline that, after an action has faulted, provides developer friendly information about an Exception along with a correct HttpStatusCode.

public static IFilterMetadata AddFaultDescriptor(this FilterCollection filters)

Parameters

filters FilterCollection

The FilterCollection to extend.

Returns

IFilterMetadata

A IFilterMetadata representing the added type.