Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
namespace Microsoft.FeatureManagement.Mvc
{
/// <summary>
/// An attribute that can be placed on MVC actions to require all or any of a set of features to be enabled. If none of the feature are enabled the registered <see cref="IDisabledFeaturesHandler"/> will be invoked.
/// An attribute that can be placed on MVC controllers, controller actions, or Razor pages to require all or any of a set of features to be enabled.
/// </summary>
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = true)]
public class FeatureGateAttribute : ActionFilterAttribute, IAsyncPageFilter
{
/// <summary>
/// Creates an attribute that will gate actions unless all the provided feature(s) are enabled.
/// Creates an attribute that will gate actions or pages unless all the provided feature(s) are enabled.
/// </summary>
/// <param name="features">The names of the features that the attribute will represent.</param>
public FeatureGateAttribute(params string[] features)
Expand All @@ -27,7 +27,7 @@ public FeatureGateAttribute(params string[] features)
}

/// <summary>
/// Creates an attribute that can be used to gate actions. The gate can be configured to require all or any of the provided feature(s) to pass.
/// Creates an attribute that can be used to gate actions or pages. The gate can be configured to require all or any of the provided feature(s) to pass.
/// </summary>
/// <param name="requirementType">Specifies whether all or any of the provided features should be enabled in order to pass.</param>
/// <param name="features">The names of the features that the attribute will represent.</param>
Expand All @@ -44,7 +44,7 @@ public FeatureGateAttribute(RequirementType requirementType, params string[] fea
}

/// <summary>
/// Creates an attribute that will gate actions unless all the provided feature(s) are enabled.
/// Creates an attribute that will gate actions or pages unless all the provided feature(s) are enabled.
/// </summary>
/// <param name="features">A set of enums representing the features that the attribute will represent.</param>
public FeatureGateAttribute(params object[] features)
Expand All @@ -53,7 +53,7 @@ public FeatureGateAttribute(params object[] features)
}

/// <summary>
/// Creates an attribute that can be used to gate actions. The gate can be configured to require all or any of the provided feature(s) to pass.
/// Creates an attribute that can be used to gate actions or pages. The gate can be configured to require all or any of the provided feature(s) to pass.
/// </summary>
/// <param name="requirementType">Specifies whether all or any of the provided features should be enabled in order to pass.</param>
/// <param name="features">A set of enums representing the features that the attribute will represent.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PropertyGroup>
<MajorVersion>2</MajorVersion>
<MinorVersion>5</MinorVersion>
<PatchVersion>0</PatchVersion>
<PatchVersion>1</PatchVersion>
</PropertyGroup>

<Import Project="..\..\build\Versioning.props" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PropertyGroup>
<MajorVersion>2</MajorVersion>
<MinorVersion>5</MinorVersion>
<PatchVersion>0</PatchVersion>
<PatchVersion>1</PatchVersion>
</PropertyGroup>

<Import Project="..\..\build\Versioning.props" />
Expand Down