Welcome to mirror list, hosted at ThFree Co, Russian Federation.

7.0-preview6_Microsoft.JSInterop.Infrastructure.md « Microsoft.AspNetCore.App « preview6 « api-diff « preview « 7.0 « release-notes - github.com/dotnet/core.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1b30a579e82618dc9ba2ceb2c89587b4c470bf48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Microsoft.JSInterop.Infrastructure

``` diff
 namespace Microsoft.JSInterop.Infrastructure {
     public static class DotNetDispatcher {
-        public static void BeginInvokeDotNet(JSRuntime jsRuntime, DotNetInvocationInfo invocationInfo, string argsJson);
+        [UnconditionalSuppressMessageAttribute("Trimming", "IL2026", Justification="We expect application code is configured to ensure return types of JSInvokable methods are retained.")]
+        public static void BeginInvokeDotNet(JSRuntime jsRuntime, DotNetInvocationInfo invocationInfo, string argsJson);
-        public static string? Invoke(JSRuntime jsRuntime, in DotNetInvocationInfo invocationInfo, string argsJson);
+        [UnconditionalSuppressMessageAttribute("Trimming", "IL2026", Justification="We expect application code is configured to ensure return types of JSInvokable methods are retained.")]
+        public static string? Invoke(JSRuntime jsRuntime, in DotNetInvocationInfo invocationInfo, string argsJson);
     }
 }
```