AddFaultDescriptor Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Mvc.Filters
- Assemblies
- Cuemon.Extensions.AspNetCore.Mvc.dll
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
filtersFilterCollectionThe FilterCollection to extend.
Returns
- IFilterMetadata
A IFilterMetadata representing the added type.