Table of Contents

AddApiKeySentinelOptions Method

Definition

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.