UseApiKeySentinel Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Http.Headers
- Assemblies
- Cuemon.Extensions.AspNetCore.dll
UseApiKeySentinel(IApplicationBuilder, Action<ApiKeySentinelOptions>)
Adds an API key header parser to the IApplicationBuilder request execution pipeline.
public static IApplicationBuilder UseApiKeySentinel(this IApplicationBuilder builder, Action<ApiKeySentinelOptions> setup = null)
Parameters
builderIApplicationBuilderThe type that provides the mechanisms to configure an application’s request pipeline.
setupAction<ApiKeySentinelOptions>The ApiKeySentinelOptions middleware which may be configured.
Returns
- IApplicationBuilder
An IApplicationBuilder that can be used to further configure the request pipeline.