Table of Contents

Class MvcBuilderExtensions

Namespace
Cuemon.Extensions.AspNetCore.Mvc.Filters
Assembly
Cuemon.Extensions.AspNetCore.Mvc.dll

Extension methods for the Microsoft.Extensions.DependencyInjection.IMvcBuilder interface.

public static class MvcBuilderExtensions
Inheritance
Object
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

builder IMvcBuilder

The Microsoft.Extensions.DependencyInjection.IMvcBuilder to extend.

setup Action<ApiKeySentinelOptions>

The ApiKeySentinelOptions which may be configured.

Returns

IMvcBuilder

A reference to builder so that additional configuration calls can be chained.

Exceptions

System.ArgumentNullException

builder cannot be null.

System.ArgumentException

setup failed 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

builder IMvcBuilder

The Microsoft.Extensions.DependencyInjection.IMvcBuilder to extend.

setup Action<MvcFaultDescriptorOptions>

The MvcFaultDescriptorOptions that may be configured.

Returns

IMvcBuilder

A reference to builder so that additional configuration calls can be chained.

Exceptions

System.ArgumentNullException

builder cannot be null.

System.ArgumentException

setup failed 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

builder IMvcBuilder

The Microsoft.Extensions.DependencyInjection.IMvcBuilder to extend.

setup Action<HttpCacheableOptions>

The HttpCacheableOptions which may be configured.

Returns

IMvcBuilder

A reference to builder so that additional configuration calls can be chained.

Exceptions

System.ArgumentNullException

builder cannot be null.

System.ArgumentException

setup failed 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

builder IMvcBuilder

The Microsoft.Extensions.DependencyInjection.IMvcBuilder to extend.

setup Action<ThrottlingSentinelOptions>

The ThrottlingSentinelOptions which may be configured.

Returns

IMvcBuilder

A reference to builder so that additional configuration calls can be chained.

Exceptions

System.ArgumentNullException

builder cannot be null.

System.ArgumentException

setup failed 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

builder IMvcBuilder

The Microsoft.Extensions.DependencyInjection.IMvcBuilder to extend.

setup Action<UserAgentSentinelOptions>

The UserAgentSentinelOptions which may be configured.

Returns

IMvcBuilder

A reference to builder so that additional configuration calls can be chained.

Exceptions

System.ArgumentNullException

builder cannot be null.

System.ArgumentException

setup failed to configure an instance of UserAgentSentinelOptions in a valid state.