Table of Contents

UseUserAgentSentinel Method

Definition

UseUserAgentSentinel(IApplicationBuilder, Action<UserAgentSentinelOptions>)

Adds a HTTP User-Agent header parser to the IApplicationBuilder request execution pipeline.

public static IApplicationBuilder UseUserAgentSentinel(this IApplicationBuilder builder, Action<UserAgentSentinelOptions> setup = null)

Parameters

builder IApplicationBuilder

The type that provides the mechanisms to configure an application’s request pipeline.

setup Action<UserAgentSentinelOptions>

The UserAgentSentinelOptions middleware which may be configured.

Returns

IApplicationBuilder

An IApplicationBuilder that can be used to further configure the request pipeline.