Skip to content

Commit 96ea99e

Browse files
committed
Remove RequiresDynamicCode attribute on MapIdentityApi
1 parent bf2be28 commit 96ea99e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Identity/Core/src/IdentityApiEndpointRouteBuilderExtensions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.Diagnostics.CodeAnalysis;
54
using System.Linq;
65
using Microsoft.AspNetCore.Authentication.BearerToken.DTO;
76
using Microsoft.AspNetCore.Builder;
@@ -28,8 +27,6 @@ public static class IdentityApiEndpointRouteBuilderExtensions
2827
/// Call <see cref="EndpointRouteBuilderExtensions.MapGroup(IEndpointRouteBuilder, string)"/> to add a prefix to all the endpoints.
2928
/// </param>
3029
/// <returns>An <see cref="IEndpointConventionBuilder"/> to further customize the added endpoints.</returns>
31-
// TODO: Remove RequiresDynamicCode when https://github.com/dotnet/aspnetcore/issues/47918 is fixed and RDG is enabled.
32-
[RequiresDynamicCode("This API requires generated code that is not compatible with native AOT applications.")]
3330
public static IEndpointConventionBuilder MapIdentityApi<TUser>(this IEndpointRouteBuilder endpoints) where TUser : class, new()
3431
{
3532
ArgumentNullException.ThrowIfNull(endpoints);

0 commit comments

Comments
 (0)