Skip to content

Commit 50e9ca2

Browse files
authored
Update type/method summaries in FeatureGateAttribute. (#170)
* Update type/method summaries in FeatureGateAttribute. * Add back text.
1 parent 0b16694 commit 50e9ca2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Microsoft.FeatureManagement.AspNetCore/FeatureGateAttribute.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
namespace Microsoft.FeatureManagement.Mvc
1313
{
1414
/// <summary>
15-
/// 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.
15+
/// 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.
1616
/// </summary>
1717
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = true)]
1818
public class FeatureGateAttribute : ActionFilterAttribute, IAsyncPageFilter
1919
{
2020
/// <summary>
21-
/// Creates an attribute that will gate actions unless all the provided feature(s) are enabled.
21+
/// Creates an attribute that will gate actions or pages unless all the provided feature(s) are enabled.
2222
/// </summary>
2323
/// <param name="features">The names of the features that the attribute will represent.</param>
2424
public FeatureGateAttribute(params string[] features)
@@ -27,7 +27,7 @@ public FeatureGateAttribute(params string[] features)
2727
}
2828

2929
/// <summary>
30-
/// 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.
30+
/// 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.
3131
/// </summary>
3232
/// <param name="requirementType">Specifies whether all or any of the provided features should be enabled in order to pass.</param>
3333
/// <param name="features">The names of the features that the attribute will represent.</param>
@@ -44,7 +44,7 @@ public FeatureGateAttribute(RequirementType requirementType, params string[] fea
4444
}
4545

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

5555
/// <summary>
56-
/// 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.
56+
/// 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.
5757
/// </summary>
5858
/// <param name="requirementType">Specifies whether all or any of the provided features should be enabled in order to pass.</param>
5959
/// <param name="features">A set of enums representing the features that the attribute will represent.</param>

src/Microsoft.FeatureManagement.AspNetCore/Microsoft.FeatureManagement.AspNetCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PropertyGroup>
66
<MajorVersion>2</MajorVersion>
77
<MinorVersion>5</MinorVersion>
8-
<PatchVersion>0</PatchVersion>
8+
<PatchVersion>1</PatchVersion>
99
</PropertyGroup>
1010

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

src/Microsoft.FeatureManagement/Microsoft.FeatureManagement.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PropertyGroup>
66
<MajorVersion>2</MajorVersion>
77
<MinorVersion>5</MinorVersion>
8-
<PatchVersion>0</PatchVersion>
8+
<PatchVersion>1</PatchVersion>
99
</PropertyGroup>
1010

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

0 commit comments

Comments
 (0)