Skip to content

Commit 9cadae3

Browse files
committed
wip
1 parent dd01b55 commit 9cadae3

File tree

96 files changed

+304
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+304
-1
lines changed

src/coreclr/System.Private.CoreLib/src/System/Threading/Monitor.CoreCLR.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ public static bool IsEntered(object obj)
149149
private static partial bool Wait(ObjectHandleOnStack obj, int millisecondsTimeout);
150150

151151
[UnsupportedOSPlatform("browser")]
152+
[UnsupportedOSPlatform("wasi")]
152153
public static bool Wait(object obj, int millisecondsTimeout)
153154
{
154155
ArgumentNullException.ThrowIfNull(obj);

src/coreclr/nativeaot/System.Private.CoreLib/src/System/Threading/Monitor.NativeAot.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ public static bool IsEntered(object obj)
144144
#region Public Wait/Pulse methods
145145

146146
[UnsupportedOSPlatform("browser")]
147+
[UnsupportedOSPlatform("wasi")]
147148
public static bool Wait(object obj, int millisecondsTimeout)
148149
{
149150
return GetCondition(obj).Wait(millisecondsTimeout, obj);

src/libraries/Common/src/System/Security/Cryptography/Helpers.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ internal static partial class Helpers
1717
#endif
1818

1919
[UnsupportedOSPlatformGuard("browser")]
20+
[UnsupportedOSPlatformGuard("wasi")]
2021
internal static bool HasSymmetricEncryption { get; } =
2122
#if NET
2223
!OperatingSystem.IsBrowser();
@@ -36,11 +37,13 @@ internal static partial class Helpers
3637
[UnsupportedOSPlatformGuard("android")]
3738
[UnsupportedOSPlatformGuard("browser")]
3839
public static bool IsRC2Supported => !OperatingSystem.IsAndroid() && !OperatingSystem.IsBrowser();
40+
[UnsupportedOSPlatformGuard("wasi")]
3941
#else
4042
public static bool IsRC2Supported => true;
4143
#endif
4244

4345
[UnsupportedOSPlatformGuard("browser")]
46+
[UnsupportedOSPlatformGuard("wasi")]
4447
internal static bool HasMD5 { get; } =
4548
#if NET
4649
!OperatingSystem.IsBrowser();

src/libraries/Microsoft.Extensions.Configuration.Xml/ref/Microsoft.Extensions.Configuration.Xml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ protected XmlDocumentDecryptor() { }
5454
[System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml which may contain XSLTs in the xml. XSLTs require dynamic code.")]
5555
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")]
5656
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
57+
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("wasi")]
5758
protected virtual System.Xml.XmlReader DecryptDocumentAndCreateXmlReader(System.Xml.XmlDocument document) { throw null; }
5859
}
5960
[System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml which may contain XSLTs in the xml. XSLTs require dynamic code.")]

src/libraries/Microsoft.Extensions.Configuration.Xml/src/XmlDocumentDecryptor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public XmlReader CreateDecryptingXmlReader(Stream input, XmlReaderSettings? sett
9898
/// <param name="document">The document.</param>
9999
/// <returns>An XmlReader which can read the document.</returns>
100100
[UnsupportedOSPlatform("browser")]
101+
[UnsupportedOSPlatform("wasi")]
101102
[RequiresDynamicCode(RequiresDynamicCodeMessage)]
102103
[RequiresUnreferencedCode(RequiresUnreferencedCodeMessage)]
103104
protected virtual XmlReader DecryptDocumentAndCreateXmlReader(XmlDocument document)

src/libraries/Microsoft.Extensions.FileProviders.Physical/src/PhysicalFilesWatcher.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ protected virtual void Dispose(bool disposing)
276276
}
277277

278278
[UnsupportedOSPlatform("browser")]
279+
[UnsupportedOSPlatform("wasi")]
279280
[UnsupportedOSPlatform("ios")]
280281
[UnsupportedOSPlatform("tvos")]
281282
[SupportedOSPlatform("maccatalyst")]
@@ -312,6 +313,7 @@ ex is DirectoryNotFoundException ||
312313
}
313314

314315
[UnsupportedOSPlatform("browser")]
316+
[UnsupportedOSPlatform("wasi")]
315317
[UnsupportedOSPlatform("ios")]
316318
[UnsupportedOSPlatform("tvos")]
317319
[SupportedOSPlatform("maccatalyst")]
@@ -321,6 +323,7 @@ private void OnChanged(object sender, FileSystemEventArgs e)
321323
}
322324

323325
[UnsupportedOSPlatform("browser")]
326+
[UnsupportedOSPlatform("wasi")]
324327
[UnsupportedOSPlatform("ios")]
325328
[UnsupportedOSPlatform("tvos")]
326329
[SupportedOSPlatform("maccatalyst")]
@@ -334,6 +337,7 @@ private void OnError(object sender, ErrorEventArgs e)
334337
}
335338

336339
[UnsupportedOSPlatform("browser")]
340+
[UnsupportedOSPlatform("wasi")]
337341
[UnsupportedOSPlatform("ios")]
338342
[UnsupportedOSPlatform("tvos")]
339343
[SupportedOSPlatform("maccatalyst")]
@@ -360,6 +364,7 @@ ex is SecurityException ||
360364
}
361365

362366
[UnsupportedOSPlatform("browser")]
367+
[UnsupportedOSPlatform("wasi")]
363368
[UnsupportedOSPlatform("ios")]
364369
[UnsupportedOSPlatform("tvos")]
365370
[SupportedOSPlatform("maccatalyst")]
@@ -400,6 +405,7 @@ private void ReportChangeForMatchedEntries(string path)
400405
}
401406

402407
[UnsupportedOSPlatform("browser")]
408+
[UnsupportedOSPlatform("wasi")]
403409
[UnsupportedOSPlatform("ios")]
404410
[UnsupportedOSPlatform("tvos")]
405411
[SupportedOSPlatform("maccatalyst")]
@@ -421,6 +427,7 @@ private void TryDisableFileSystemWatcher()
421427
}
422428

423429
[UnsupportedOSPlatform("browser")]
430+
[UnsupportedOSPlatform("wasi")]
424431
[UnsupportedOSPlatform("ios")]
425432
[UnsupportedOSPlatform("tvos")]
426433
[SupportedOSPlatform("maccatalyst")]

src/libraries/Microsoft.Extensions.Hosting.Systemd/ref/Microsoft.Extensions.Hosting.Systemd.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public static partial class SystemdHelpers
3434
}
3535
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("android")]
3636
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
37+
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("wasi")]
3738
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
3839
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("maccatalyst")]
3940
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
@@ -45,6 +46,7 @@ public void Dispose() { }
4546
public System.Threading.Tasks.Task WaitForStartAsync(System.Threading.CancellationToken cancellationToken) { throw null; }
4647
}
4748
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
49+
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("wasi")]
4850
public partial class SystemdNotifier : Microsoft.Extensions.Hosting.Systemd.ISystemdNotifier
4951
{
5052
public SystemdNotifier() { }

src/libraries/Microsoft.Extensions.Hosting.Systemd/src/SystemdLifetime.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace Microsoft.Extensions.Hosting.Systemd
1414
/// </summary>
1515
[UnsupportedOSPlatform("android")]
1616
[UnsupportedOSPlatform("browser")]
17+
[UnsupportedOSPlatform("wasi")]
1718
[UnsupportedOSPlatform("ios")]
1819
[UnsupportedOSPlatform("maccatalyst")]
1920
[UnsupportedOSPlatform("tvos")]

src/libraries/Microsoft.Extensions.Hosting.Systemd/src/SystemdNotifier.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace Microsoft.Extensions.Hosting.Systemd
1111
/// Provides support to notify systemd about the service status.
1212
/// </summary>
1313
[UnsupportedOSPlatform("browser")]
14+
[UnsupportedOSPlatform("wasi")]
1415
public class SystemdNotifier : ISystemdNotifier
1516
{
1617
private const string NOTIFY_SOCKET = "NOTIFY_SOCKET";

src/libraries/Microsoft.Extensions.Hosting/ref/Microsoft.Extensions.Hosting.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,25 @@ public static partial class HostingHostBuilderExtensions
7878
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureServices(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> configureDelegate) { throw null; }
7979
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("android")]
8080
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
81+
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("wasi")]
8182
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
8283
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
8384
public static System.Threading.Tasks.Task RunConsoleAsync(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Action<Microsoft.Extensions.Hosting.ConsoleLifetimeOptions> configureOptions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
8485
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("android")]
8586
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
87+
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("wasi")]
8688
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
8789
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
8890
public static System.Threading.Tasks.Task RunConsoleAsync(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
8991
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("android")]
9092
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
93+
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("wasi")]
9194
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
9295
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
9396
public static Microsoft.Extensions.Hosting.IHostBuilder UseConsoleLifetime(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder) { throw null; }
9497
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("android")]
9598
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
99+
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("wasi")]
96100
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
97101
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
98102
public static Microsoft.Extensions.Hosting.IHostBuilder UseConsoleLifetime(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Action<Microsoft.Extensions.Hosting.ConsoleLifetimeOptions> configureOptions) { throw null; }

0 commit comments

Comments
 (0)