Table of Contents

Class FilterCollectionExtensions

Namespace
Cuemon.Extensions.AspNetCore.Mvc.Filters
Assembly
Cuemon.Extensions.AspNetCore.Mvc.dll

Extension methods for the Microsoft.AspNetCore.Mvc.Filters.FilterCollection class.

public static class FilterCollectionExtensions
Inheritance
Object
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 FilterCollection

The 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 System.Exception along with a correct System.Net.HttpStatusCode.

public static IFilterMetadata AddFaultDescriptor(this FilterCollection filters)

Parameters

filters FilterCollection

The 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 FilterCollection

The 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 FilterCollection

The 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 FilterCollection

The 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 FilterCollection

The Microsoft.AspNetCore.Mvc.Filters.FilterCollection to extend.

Returns

IFilterMetadata

A Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata representing the added type.