Class MvcBuilderExtensions
- Namespace
 - Cuemon.Extensions.AspNetCore.Mvc.Filters
 
- Assembly
 - Cuemon.Extensions.AspNetCore.Mvc.dll
 
Extension methods for the IMvcBuilder interface.
public static class MvcBuilderExtensions
  - Inheritance
 - 
      
      MvcBuilderExtensions
 
Methods
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.
AddFaultDescriptorOptions(IMvcBuilder, Action<MvcFaultDescriptorOptions>)
Registers the specified setup to configure MvcFaultDescriptorOptions in the underlying service collection of builder.
public static IMvcBuilder AddFaultDescriptorOptions(this IMvcBuilder builder, Action<MvcFaultDescriptorOptions> setup = null)
  Parameters
builderIMvcBuilderThe IMvcBuilder to extend.
setupAction<MvcFaultDescriptorOptions>The MvcFaultDescriptorOptions that 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 MvcFaultDescriptorOptions in a valid state.
AddHttpCacheableOptions(IMvcBuilder, Action<HttpCacheableOptions>)
Registers the specified setup to configure HttpCacheableOptions in the underlying service collection of builder.
public static IMvcBuilder AddHttpCacheableOptions(this IMvcBuilder builder, Action<HttpCacheableOptions> setup = null)
  Parameters
builderIMvcBuilderThe IMvcBuilder to extend.
setupAction<HttpCacheableOptions>The HttpCacheableOptions 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 HttpCacheableOptions in a valid state.
AddThrottlingSentinelOptions(IMvcBuilder, Action<ThrottlingSentinelOptions>)
Registers the specified setup to configure ThrottlingSentinelOptions in the underlying service collection of builder.
public static IMvcBuilder AddThrottlingSentinelOptions(this IMvcBuilder builder, Action<ThrottlingSentinelOptions> setup = null)
  Parameters
builderIMvcBuilderThe IMvcBuilder to extend.
setupAction<ThrottlingSentinelOptions>The ThrottlingSentinelOptions 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 ThrottlingSentinelOptions in a valid state.
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
builderIMvcBuilderThe IMvcBuilder to extend.
setupAction<UserAgentSentinelOptions>The UserAgentSentinelOptions 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 UserAgentSentinelOptions in a valid state.