Table of Contents

AddApiKeySentinelOptions Method

Definition

Namespace
Cuemon.Extensions.AspNetCore.Mvc.Filters
Assemblies
Cuemon.Extensions.AspNetCore.Mvc.dll
Source
src/Cuemon.Extensions.AspNetCore.Mvc/Filters/MvcBuilderExtensions.cs

AddApiKeySentinelOptions(IMvcBuilder, Action<ApiKeySentinelOptions>)

Registers the specified setup to configure ApiKeySentinelOptions in the underlying service collection of builder.

public static IMvcBuilder AddApiKeySentinelOptions(this IMvcBuilder builder, Action<ApiKeySentinelOptions> setup = null)

Parameters

builder IMvcBuilder

The IMvcBuilder to extend.

setup Action<ApiKeySentinelOptions>

The ApiKeySentinelOptions which may be configured.

Returns

IMvcBuilder

A reference to builder so that additional configuration calls can be chained.

Exceptions

ArgumentNullException

builder cannot be null.

ArgumentException

setup failed to configure an instance of ApiKeySentinelOptions in a valid state.