Table of Contents

UseApiKeySentinel Method

Definition

UseApiKeySentinel(IApplicationBuilder, Action<ApiKeySentinelOptions>)

Adds an API key header parser to the IApplicationBuilder request execution pipeline.

public static IApplicationBuilder UseApiKeySentinel(this IApplicationBuilder builder, Action<ApiKeySentinelOptions> setup = null)

Parameters

builder IApplicationBuilder

The type that provides the mechanisms to configure an application’s request pipeline.

setup Action<ApiKeySentinelOptions>

The ApiKeySentinelOptions middleware which may be configured.

Returns

IApplicationBuilder

An IApplicationBuilder that can be used to further configure the request pipeline.