Class FilterCollectionExtensions
- Assembly
- Cuemon.Extensions.AspNetCore.Mvc.dll
Extension methods for the Microsoft.AspNetCore.Mvc.Filters.FilterCollection class.
public static class FilterCollectionExtensions
- Inheritance
-
FilterCollectionExtensions
Methods
AddApiKeySentinel(FilterCollection)
Adds an ApiKeySentinelFilter to the filters
handled in the MVC request pipeline that provides an API key sentinel on action methods.
public static IFilterMetadata AddApiKeySentinel(this FilterCollection filters)
Parameters
filters
FilterCollectionThe Microsoft.AspNetCore.Mvc.Filters.FilterCollection to extend.
Returns
- IFilterMetadata
A Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata representing the added type.
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
FilterCollectionThe Microsoft.AspNetCore.Mvc.Filters.FilterCollection to extend.
Returns
- IFilterMetadata
A Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata representing the added type.
AddHttpCacheable(FilterCollection)
Adds a HttpCacheableFilter to the filters
handled in the MVC request pipeline that will invoke filters implementing the ICacheableObjectResult interface
public static IFilterMetadata AddHttpCacheable(this FilterCollection filters)
Parameters
filters
FilterCollectionThe Microsoft.AspNetCore.Mvc.Filters.FilterCollection to extend.
Returns
- IFilterMetadata
A Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata representing the added type.
AddServerTiming(FilterCollection)
Adds a ServerTimingFilter to the filters
handled in the MVC request pipeline that performs time measure profiling of action methods.
public static IFilterMetadata AddServerTiming(this FilterCollection filters)
Parameters
filters
FilterCollectionThe Microsoft.AspNetCore.Mvc.Filters.FilterCollection to extend.
Returns
- IFilterMetadata
A Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata representing the added type.
AddThrottlingSentinel(FilterCollection)
Adds a ThrottlingSentinelFilter to the filters
handled in the MVC request pipeline that provides an API throttling on action methods.
public static IFilterMetadata AddThrottlingSentinel(this FilterCollection filters)
Parameters
filters
FilterCollectionThe Microsoft.AspNetCore.Mvc.Filters.FilterCollection to extend.
Returns
- IFilterMetadata
A Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata representing the added type.
AddUserAgentSentinel(FilterCollection)
Adds an UserAgentSentinelFilter to the filters
handled in the MVC request pipeline that provides an User-Agent sentinel on action methods.
public static IFilterMetadata AddUserAgentSentinel(this FilterCollection filters)
Parameters
filters
FilterCollectionThe Microsoft.AspNetCore.Mvc.Filters.FilterCollection to extend.
Returns
- IFilterMetadata
A Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata representing the added type.