IFeatureManagementBuilder Interface
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.
Provides a way to customize feature management functionality.
public interface IFeatureManagementBuilder
type IFeatureManagementBuilder = interface
Public Interface IFeatureManagementBuilder
Properties
Services |
The application services. |
Methods
AddFeatureFilter<T>() |
Adds a given feature filter to the list of feature filters that will be available to enable features during runtime. Possible feature filter metadata types include IFeatureFilter and IContextualFeatureFilter<TContext> Only one feature filter interface can be implemented by a single type. |
AddSessionManager<T>() |
Adds an ISessionManager to be used for storing feature state in a session. |
Extension Methods
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. |
WithTargeting<T>(IFeatureManagementBuilder) |
Adds an ITargetingContextAccessor to be used for targeting and registers the targeting filter to the feature management system. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應