Skip to content

Commit 416f56d

Browse files
committed
More suppressions
1 parent 5ee5bd0 commit 416f56d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/Http/Http.Results/src/ResultsOfTHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ internal static class ResultsOfTHelper
1717

1818
// TODO: Improve calling static interface method with reflection
1919
// https://github.com/dotnet/aspnetcore/issues/46267
20+
[UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "Guarded by RuntimeFeature.IsDynamicCodeSupported")]
2021
public static void PopulateMetadataIfTargetIsIEndpointMetadataProvider<[DynamicallyAccessedMembers(RequireMethods)] TTarget>(MethodInfo method, EndpointBuilder builder)
2122
{
2223
if (typeof(IEndpointMetadataProvider).IsAssignableFrom(typeof(TTarget)))

src/SignalR/server/Core/src/Internal/DefaultHubDispatcher.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,7 @@ private void ReplaceArguments(HubMethodDescriptor descriptor, HubMethodInvocatio
763763
}
764764
}
765765

766+
[UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "Guarded by RuntimeFeature.IsDynamicCodeSupported")]
766767
private void DiscoverHubMethods(bool disableImplicitFromServiceParameters)
767768
{
768769
var hubType = typeof(THub);

src/SignalR/server/Core/src/Internal/HubMethodDescriptor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ public object GetService(IServiceProvider serviceProvider, int index, Type param
201201
return serviceProvider.GetRequiredService(parameterType);
202202
}
203203

204+
[UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "Guarded by RuntimeFeature.IsDynamicCodeSupported")]
204205
public IAsyncEnumerator<object?> FromReturnedStream(object stream, CancellationToken cancellationToken)
205206
{
206207
// there is the potential for _makeCancelableEnumerator to be set multiple times but this has no harmful effect other than startup perf

0 commit comments

Comments
 (0)