Skip to content
Prev Previous commit
Next Next commit
update
  • Loading branch information
zhiyuanliang-ms committed Feb 1, 2024
commit bf5ee687c6f169428c1683e236e82b9ce329601b
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static class FilterCollectionExtensions
/// <typeparam name="TFilterType">The MVC filter to add and use if the feature is enabled.</typeparam>
/// <param name="filters">The filter collection to add to.</param>
/// <param name="feature">The feature that will need to enabled to trigger the execution of the MVC filter.</param>
/// <returns>A reference to the <see cref="FilterCollection"/> instance after the operation has completed.</returns>
/// <returns>The reference to the filter collection.</returns>
public static FilterCollection AddForFeature<TFilterType>(this FilterCollection filters, string feature) where TFilterType : IAsyncActionFilter
{
filters.Add(new FeatureGatedAsyncActionFilter<TFilterType>(feature));
Expand Down