You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#pragma warning disable ASP0029// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
2
+
3
+
// Licensed to the .NET Foundation under one or more agreements.
4
+
// The .NET Foundation licenses this file to you under the MIT license.
5
+
6
+
usingSystem.Collections.Concurrent;
7
+
usingSystem.ComponentModel.DataAnnotations;
8
+
usingSystem.Diagnostics.CodeAnalysis;
9
+
usingSystem.IO.Pipelines;
10
+
usingSystem.Linq;
11
+
usingSystem.Reflection;
12
+
usingSystem.Security.Claims;
13
+
14
+
namespaceMicrosoft.AspNetCore.Http.Validation;
15
+
16
+
[RequiresUnreferencedCode("Uses unbounded Reflection to inspect property types.")]
Copy file name to clipboardExpand all lines: src/Http/Http.Abstractions/src/Validation/ValidationServiceCollectionExtensions.cs
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,10 @@ public static IServiceCollection AddValidation(this IServiceCollection services,
27
27
// Support ParameterInfo resolution at runtime
28
28
#pragma warning disable ASP0029// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning disable IL2026// Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code
#pragma warning restore IL2026// Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code
30
34
#pragma warning restore ASP0029// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
0 commit comments