AspNetCoreFeatureManagementBuilderExtensions.UseDisabledFeaturesHandler Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UseDisabledFeaturesHandler(IFeatureManagementBuilder, IDisabledFeaturesHandler) |
Registers a disabled feature handler. This will be invoked for MVC actions that require a feature that is not enabled. |
UseDisabledFeaturesHandler(IFeatureManagementBuilder, Action<IEnumerable<String>,ActionExecutingContext>) |
Provides a way to specify an inline disabled feature handler. |
UseDisabledFeaturesHandler(IFeatureManagementBuilder, IDisabledFeaturesHandler)
Registers a disabled feature handler. This will be invoked for MVC actions that require a feature that is not enabled.
public static Microsoft.FeatureManagement.IFeatureManagementBuilder UseDisabledFeaturesHandler (this Microsoft.FeatureManagement.IFeatureManagementBuilder builder, Microsoft.FeatureManagement.Mvc.IDisabledFeaturesHandler disabledFeaturesHandler);
static member UseDisabledFeaturesHandler : Microsoft.FeatureManagement.IFeatureManagementBuilder * Microsoft.FeatureManagement.Mvc.IDisabledFeaturesHandler -> Microsoft.FeatureManagement.IFeatureManagementBuilder
<Extension()>
Public Function UseDisabledFeaturesHandler (builder As IFeatureManagementBuilder, disabledFeaturesHandler As IDisabledFeaturesHandler) As IFeatureManagementBuilder
Parameters
- builder
- IFeatureManagementBuilder
The feature management builder.
- disabledFeaturesHandler
- IDisabledFeaturesHandler
The disabled feature handler.
Returns
The feature management builder.
Applies to
UseDisabledFeaturesHandler(IFeatureManagementBuilder, Action<IEnumerable<String>,ActionExecutingContext>)
Provides a way to specify an inline disabled feature handler.
public static Microsoft.FeatureManagement.IFeatureManagementBuilder UseDisabledFeaturesHandler (this Microsoft.FeatureManagement.IFeatureManagementBuilder builder, Action<System.Collections.Generic.IEnumerable<string>,Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext> handler);
static member UseDisabledFeaturesHandler : Microsoft.FeatureManagement.IFeatureManagementBuilder * Action<seq<string>, Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext> -> Microsoft.FeatureManagement.IFeatureManagementBuilder
<Extension()>
Public Function UseDisabledFeaturesHandler (builder As IFeatureManagementBuilder, handler As Action(Of IEnumerable(Of String), ActionExecutingContext)) As IFeatureManagementBuilder
Parameters
- builder
- IFeatureManagementBuilder
The feature management builder.
- handler
- Action<IEnumerable<String>,ActionExecutingContext>
The inline handler for disabled features.
Returns
The feature management builder.
Applies to
Azure SDK for .NET