AddApiKeySentinelOptions Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Mvc.Filters
- Assemblies
- Cuemon.Extensions.AspNetCore.Mvc.dll
AddApiKeySentinelOptions(IMvcBuilder, Action<ApiKeySentinelOptions>)
Registers the specified setup to configure ApiKeySentinelOptions in the underlying service collection of builder.
public static IMvcBuilder AddApiKeySentinelOptions(this IMvcBuilder builder, Action<ApiKeySentinelOptions> setup = null)
Parameters
builderIMvcBuilderThe IMvcBuilder to extend.
setupAction<ApiKeySentinelOptions>The ApiKeySentinelOptions which may be configured.
Returns
- IMvcBuilder
A reference to
builderso that additional configuration calls can be chained.
Exceptions
- ArgumentNullException
buildercannot be null.- ArgumentException
setupfailed to configure an instance of ApiKeySentinelOptions in a valid state.