DesktopNetworkStatus class

Namespace Runic.Platform in Runic.Platform 0.23.0

public static class DesktopNetworkStatus

Network status for hosts and platforms without a provider.

Methods

Unavailable

public static IDesktopNetworkStatus Unavailable(PlatformUnavailableReason reason)

Creates network status that reports every read unavailable for reason.

Exceptions

ArgumentOutOfRangeException

reason is not defined.

Remarks

IDesktopNetworkStatus.WatchAsync reports that value once and then waits for cancellation or disposal. Nothing throws except caller cancellation and use after disposal.