Table of Contents

AddApiKeySentinelOptions Method

Definition

AddApiKeySentinelOptions(IServiceCollection, Action<ApiKeySentinelOptions>)

Adds configuration of ApiKeySentinelOptions for the application.

public static IServiceCollection AddApiKeySentinelOptions(this IServiceCollection services, Action<ApiKeySentinelOptions> setup = null)

Parameters

services IServiceCollection

The IServiceCollection to extend.

setup Action<ApiKeySentinelOptions>

The ApiKeySentinelOptions which may be configured.

Returns

IServiceCollection

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

Exceptions

ArgumentNullException

services cannot be null.

ArgumentException

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