Table of Contents

AddApiKeySentinel Method

Definition

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 FilterCollection to extend.

Returns

IFilterMetadata

A IFilterMetadata representing the added type.