Skip to content

Commit 95ff9ed

Browse files
authored
Remove AttributeTargets.Delegate from attributes
1 parent c986ad6 commit 95ff9ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Http/Http.Extensions/src/EndpointDescriptionAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Http;
1212
/// The OpenAPI specification supports a description attribute on operations and parameters that
1313
/// can be used to annotate endpoints with detailed, multiline descriptors of their behavior.
1414
/// </remarks>
15-
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Delegate, Inherited = false, AllowMultiple = false)]
15+
[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
1616
public sealed class EndpointDescriptionAttribute : Attribute, IEndpointDescriptionMetadata
1717
{
1818
/// <summary>

src/Http/Http.Extensions/src/EndpointSummaryAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Http;
88
/// <summary>
99
/// Specifies a summary in <see cref="Endpoint.Metadata"/>.
1010
/// </summary>
11-
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Delegate, Inherited = false, AllowMultiple = false)]
11+
[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
1212
public sealed class EndpointSummaryAttribute : Attribute, IEndpointSummaryMetadata
1313
{
1414
/// <summary>

0 commit comments

Comments
 (0)