Table of Contents

AddUserAgentSentinelOptions Method

Definition

AddUserAgentSentinelOptions(IMvcBuilder, Action<UserAgentSentinelOptions>)

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

public static IMvcBuilder AddUserAgentSentinelOptions(this IMvcBuilder builder, Action<UserAgentSentinelOptions> setup = null)

Parameters

builder IMvcBuilder

The IMvcBuilder to extend.

setup Action<UserAgentSentinelOptions>

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