Table of Contents

AddUserAgentSentinelOptions Method

Definition

AddUserAgentSentinelOptions(IServiceCollection, Action<UserAgentSentinelOptions>)

Adds configuration of UserAgentSentinelOptions for the application.

public static IServiceCollection AddUserAgentSentinelOptions(this IServiceCollection services, Action<UserAgentSentinelOptions> setup = null)

Parameters

services IServiceCollection

The IServiceCollection to extend.

setup Action<UserAgentSentinelOptions>

The UserAgentSentinelOptions 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 UserAgentSentinelOptions in a valid state.