Skip to content

Commit 6d6743b

Browse files
Version neutrality should be inheritable. Fixes #93 (#94)
1 parent e71d903 commit 6d6743b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Common/ApiVersionNeutralAttribute.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ namespace Microsoft.AspNetCore.Mvc
1111
/// <summary>
1212
/// Represents the metadata to indicate a service is API version neutral.
1313
/// </summary>
14-
[AttributeUsage( Class, AllowMultiple = false, Inherited = false )]
15-
public sealed partial class ApiVersionNeutralAttribute : Attribute, IApiVersionNeutral
14+
[AttributeUsage( Class, AllowMultiple = false, Inherited = true )]
15+
public sealed class ApiVersionNeutralAttribute : Attribute, IApiVersionNeutral
1616
{
1717
}
1818
}
19-

0 commit comments

Comments
 (0)