IFeatureManagementBuilder 介面

定義

提供自訂功能管理功能的方法。

public interface IFeatureManagementBuilder
type IFeatureManagementBuilder = interface
Public Interface IFeatureManagementBuilder

屬性

Services

應用程式服務。

方法

AddFeatureFilter<T>()

將指定的功能篩選新增至可在執行時間啟用功能的功能篩選清單。 可能的功能篩選元資料類型包括 IFeatureFilter ,而且 IContextualFeatureFilter<TContext> 單一類型只能實作一個功能篩選介面。

AddSessionManager<T>()

ISessionManager加入 ,以用於將功能狀態儲存在會話中。

擴充方法

UseDisabledFeaturesHandler(IFeatureManagementBuilder, IDisabledFeaturesHandler)

註冊已停用的功能處理常式。 這會針對需要未啟用功能的 MVC 動作叫用。

UseDisabledFeaturesHandler(IFeatureManagementBuilder, Action<IEnumerable<String>,ActionExecutingContext>)

提供指定內嵌停用功能處理常式的方法。

適用於