96 references to IsWasi
Microsoft.Extensions.Configuration.Xml (1)
XmlDocumentDecryptor.cs (1)
106
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException();
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalFileProvider.cs (1)
167
if (OperatingSystem.IsBrowser() || OperatingSystem.
IsWasi
() || (OperatingSystem.IsIOS() && !OperatingSystem.IsMacCatalyst()) || OperatingSystem.IsTvOS())
PhysicalFilesWatcher.cs (1)
88
if (OperatingSystem.IsBrowser() || OperatingSystem.
IsWasi
() || (OperatingSystem.IsIOS() && !OperatingSystem.IsMacCatalyst()) || OperatingSystem.IsTvOS())
Microsoft.Extensions.Hosting (3)
HostBuilder.netcoreapp.cs (1)
14
if (!OperatingSystem.IsAndroid() && !OperatingSystem.IsBrowser() && !OperatingSystem.
IsWasi
() && !OperatingSystem.IsIOS() && !OperatingSystem.IsTvOS())
HostingHostBuilderExtensions.cs (1)
296
if (!OperatingSystem.IsBrowser() && !OperatingSystem.
IsWasi
())
Internal\ConsoleLifetime.netcoreapp.cs (1)
18
if (!OperatingSystem.
IsWasi
())
Microsoft.Extensions.Hosting.Systemd (1)
SystemdNotifier.cs (1)
45
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException();
Microsoft.Extensions.Http (1)
MetricsFactoryHttpMessageHandlerFilter.cs (1)
36
else if (!OperatingSystem.IsBrowser() && !OperatingSystem.
IsWasi
() && builder.PrimaryHandler is SocketsHttpHandler socketsHttpHandler)
System.ComponentModel.TypeConverter (1)
System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicyTypeConverter.cs (1)
24
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\Metrics\MetricsEventSource.cs (1)
342
if (OperatingSystem.
IsWasi
())
System\Diagnostics\Metrics\RuntimeMetrics.cs (2)
149
if (!OperatingSystem.IsBrowser() && !OperatingSystem.
IsWasi
() && !OperatingSystem.IsTvOS() && !(OperatingSystem.IsIOS() && !OperatingSystem.IsMacCatalyst()))
177
Debug.Assert(!OperatingSystem.IsBrowser() && !OperatingSystem.
IsWasi
() &&!OperatingSystem.IsTvOS() && !(OperatingSystem.IsIOS() && !OperatingSystem.IsMacCatalyst()));
System.Diagnostics.Process (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
17
if (OperatingSystem.
IsWasi
())
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
253
if (OperatingSystem.IsBrowser() || OperatingSystem.
IsWasi
() ) // Process isn't supported on Browser
System.IO.Pipes (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
17
if (OperatingSystem.
IsWasi
())
System.Linq.Parallel (1)
System\Linq\ParallelEnumerable.cs (1)
69
internal static bool SinglePartitionMode => OperatingSystem.IsBrowser() || OperatingSystem.
IsWasi
();
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (1)
39
public static bool IsSupported => !OperatingSystem.IsBrowser() && !OperatingSystem.
IsWasi
();
System.Net.NameResolution (16)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
17
if (OperatingSystem.
IsWasi
())
src\libraries\Common\src\System\Net\SocketProtocolSupportPal.Unix.cs (1)
17
if (af == AddressFamily.Unix && (OperatingSystem.IsTvOS() || OperatingSystem.
IsWasi
() || (OperatingSystem.IsIOS() && !OperatingSystem.IsMacCatalyst())))
System\Net\Dns.cs (10)
42
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
154
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
165
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
181
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
257
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
284
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
294
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
307
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
353
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
472
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
System\Net\NameResolutionPal.Unix.cs (2)
20
public static bool SupportsGetNameInfo => !OperatingSystem.
IsWasi
();
156
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
System\Net\NameResolutionTelemetry.cs (2)
62
public static bool AnyDiagnosticsEnabled() => !OperatingSystem.
IsWasi
() && (Log.IsEnabled() || NameResolutionMetrics.IsEnabled() || NameResolutionActivity.IsTracingEnabled());
94
if (OperatingSystem.
IsWasi
()) return;
System.Net.NetworkInformation (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
17
if (OperatingSystem.
IsWasi
())
System.Net.Ping (1)
src\libraries\Common\src\System\Net\SocketProtocolSupportPal.Unix.cs (1)
17
if (af == AddressFamily.Unix && (OperatingSystem.IsTvOS() || OperatingSystem.
IsWasi
() || (OperatingSystem.IsIOS() && !OperatingSystem.IsMacCatalyst())))
System.Net.Primitives (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
17
if (OperatingSystem.
IsWasi
())
System.Net.Sockets (45)
src\libraries\Common\src\System\Net\SocketProtocolSupportPal.Unix.cs (1)
17
if (af == AddressFamily.Unix && (OperatingSystem.IsTvOS() || OperatingSystem.
IsWasi
() || (OperatingSystem.IsIOS() && !OperatingSystem.IsMacCatalyst())))
System\Net\Sockets\NetworkStream.cs (6)
49
if (!OperatingSystem.
IsWasi
() && !socket.Blocking)
121
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // https://github.com/dotnet/runtime/issues/108151
132
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // https://github.com/dotnet/runtime/issues/108151
148
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // https://github.com/dotnet/runtime/issues/108151
159
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // https://github.com/dotnet/runtime/issues/108151
688
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // https://github.com/dotnet/runtime/issues/108151
System\Net\Sockets\SafeSocketHandle.Unix.cs (1)
235
if (OperatingSystem.
IsWasi
())
System\Net\Sockets\Socket.cs (21)
48
private bool _willBlock = !OperatingSystem.
IsWasi
(); // Desired state of the socket from the user.
49
private bool _willBlockInternal = !OperatingSystem.
IsWasi
(); // Actual state of the socket.
67
private bool _receivingPacketInformation = OperatingSystem.
IsWasi
();
263
internal static bool OSSupportsIPv6DualMode => !OperatingSystem.
IsWasi
() && OSSupportsIPv6;
265
internal static bool OSSupportsThreads => !OperatingSystem.
IsWasi
();
545
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
550
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
565
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
571
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
587
if (OperatingSystem.
IsWasi
()) return new LingerOption(false, 0);
593
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
655
if (OperatingSystem.
IsWasi
()) return false;
669
if (OperatingSystem.
IsWasi
() && value) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
686
if (OperatingSystem.
IsWasi
())
706
if (OperatingSystem.
IsWasi
() && value) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
727
if (OperatingSystem.
IsWasi
() || SocketType == SocketType.Stream)
735
if (OperatingSystem.
IsWasi
() && value) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
3560
if (OperatingSystem.
IsWasi
()) return; // WASI is always set to receive PacketInformation
3590
if (OperatingSystem.
IsWasi
() && optionName == SocketOptionName.PacketInformation)
3667
if (OperatingSystem.
IsWasi
() && lref.Enabled) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
3682
if (OperatingSystem.
IsWasi
()) return new LingerOption(false, 0);
System\Net\Sockets\Socket.Unix.cs (1)
66
if (OperatingSystem.
IsWasi
())
System\Net\Sockets\SocketAsyncContext.Unix.cs (2)
1264
private bool _isHandleNonBlocking = OperatingSystem.
IsWasi
(); // WASI sockets are always non-blocking, because we don't have another thread which could be blocked
1345
if (OperatingSystem.
IsWasi
())
System\Net\Sockets\SocketPal.Unix.cs (5)
75
if (!OperatingSystem.
IsWasi
() && addressFamily == AddressFamily.InterNetworkV6 && socketType != SocketType.Raw)
293
if (OperatingSystem.
IsWasi
())
385
if (OperatingSystem.
IsWasi
())
546
if (OperatingSystem.
IsWasi
())
1076
if (OperatingSystem.
IsWasi
() && shouldBlock) throw new PlatformNotSupportedException();
System\Net\Sockets\TCPClient.cs (5)
324
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // https://github.com/dotnet/runtime/issues/108151
329
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // https://github.com/dotnet/runtime/issues/108151
339
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // https://github.com/dotnet/runtime/issues/108151
344
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // https://github.com/dotnet/runtime/issues/108151
359
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // https://github.com/dotnet/runtime/issues/108151
System\Net\Sockets\TCPListener.cs (3)
194
if (OperatingSystem.
IsWasi
() && _serverSocket!.Blocking) throw new PlatformNotSupportedException("Only use with Socket.Blocking=false on WASI");
206
if (OperatingSystem.
IsWasi
() && _serverSocket!.Blocking) throw new PlatformNotSupportedException("Only use with Socket.Blocking=false on WASI");
259
if (!OperatingSystem.
IsWasi
()) listener.Server.DualMode = true;
System.Private.CoreLib (5)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
17
if (OperatingSystem.
IsWasi
())
src\libraries\Common\src\System\Threading\Tasks\TaskToAsyncResult.cs (1)
35
if (OperatingSystem.
IsWasi
()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (1)
37
internal static bool DisableFileLocking { get; } = OperatingSystem.IsBrowser() || OperatingSystem.
IsWasi
()// #40065: Emscripten does not support file locking
src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.Unix.cs (1)
41
if (OperatingSystem.IsBrowser() || OperatingSystem.
IsWasi
() || OperatingSystem.IsAndroid() ||
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Icu.cs (1)
202
if ((OperatingSystem.IsBrowser() || OperatingSystem.
IsWasi
()) && (normalizationForm == NormalizationForm.FormKC || normalizationForm == NormalizationForm.FormKD))
System.Runtime.Caching (4)
System\Runtime\Caching\HostFileChangeMonitor.cs (1)
102
if (OperatingSystem.IsBrowser() || OperatingSystem.
IsWasi
() || (OperatingSystem.IsIOS() && !OperatingSystem.IsMacCatalyst()) || OperatingSystem.IsTvOS())
System\Runtime\Caching\MemoryCache.cs (1)
44
private static bool _countersSupported => !OperatingSystem.IsBrowser() && !OperatingSystem.
IsWasi
();
System\Runtime\Caching\MemoryCacheStatistics.cs (1)
43
private static bool _configSupported => !OperatingSystem.IsBrowser() && !OperatingSystem.
IsWasi
();
System\Runtime\Caching\MemoryCacheStore.cs (1)
32
private static bool _countersSupported => !OperatingSystem.IsBrowser() && !OperatingSystem.
IsWasi
();
System.Security.Cryptography (2)
src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (2)
24
!OperatingSystem.IsBrowser() && !OperatingSystem.
IsWasi
();
50
!OperatingSystem.IsBrowser() && !OperatingSystem.
IsWasi
();
System.Security.Cryptography.Pkcs (2)
src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (2)
24
!OperatingSystem.IsBrowser() && !OperatingSystem.
IsWasi
();
50
!OperatingSystem.IsBrowser() && !OperatingSystem.
IsWasi
();
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\Parallel.cs (1)
243
if (OperatingSystem.IsBrowser() || OperatingSystem.
IsWasi
() ||
System\Threading\Tasks\TaskReplicator.cs (1)
135
if (OperatingSystem.IsBrowser() || OperatingSystem.
IsWasi
() )