C# Класс AngleSharp.Io.Tests.Helper

Small (but quite useable) code to enable / disable some test(s) depending on the current network status. Taken from http://stackoverflow.com/questions/520347/c-sharp-how-do-i-check-for-a-network-connection
Показать файл Открыть проект

Открытые методы

Метод Описание
IsNetworkAvailable ( ) : System.Boolean

Indicates whether any network connection is available Filter connections below a specified speed, as well as virtual network cards. Additionally writes an inconclusive message if no network is available.

IsNetworkAvailable ( System.Int64 minimumSpeed ) : System.Boolean

Indicates whether any network connection is available. Filter connections below a specified speed, as well as virtual network cards.

Описание методов

IsNetworkAvailable() публичный статический Метод

Indicates whether any network connection is available Filter connections below a specified speed, as well as virtual network cards. Additionally writes an inconclusive message if no network is available.
public static IsNetworkAvailable ( ) : System.Boolean
Результат System.Boolean

IsNetworkAvailable() публичный статический Метод

Indicates whether any network connection is available. Filter connections below a specified speed, as well as virtual network cards.
public static IsNetworkAvailable ( System.Int64 minimumSpeed ) : System.Boolean
minimumSpeed System.Int64 The minimum speed required. Passing 0 will not filter connection using speed.
Результат System.Boolean