C# Class 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
Mostrar archivo Open project: AngleSharp/AngleSharp.Io

Public Methods

Method Description
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.

Method Details

IsNetworkAvailable() public static method

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
return System.Boolean

IsNetworkAvailable() public static method

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.
return System.Boolean