UseUserAgentSentinel Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Http.Headers
- Assemblies
- Cuemon.Extensions.AspNetCore.dll
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
builderIApplicationBuilderThe type that provides the mechanisms to configure an application’s request pipeline.
setupAction<UserAgentSentinelOptions>The UserAgentSentinelOptions middleware which may be configured.
Returns
- IApplicationBuilder
An IApplicationBuilder that can be used to further configure the request pipeline.