Merge MKDT_0007
This commit is contained in:
@@ -7,18 +7,6 @@ namespace MarketData.Integration
|
||||
private NetworkStatus()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Indicates whether any network connection is available
|
||||
/// Filter connections below a specified speed, as well as virtual network cards.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// <c>true</c> if a network connection is available; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public static bool IsNetworkAvailable()
|
||||
{
|
||||
return IsNetworkAvailable(0);
|
||||
}
|
||||
|
||||
// On Linux platforms we must be priveleged to send custom payloads so we are using the send option that does not require a payload
|
||||
// This differs from the windows implementation
|
||||
public static bool IsInternetConnected()
|
||||
@@ -53,11 +41,10 @@ namespace MarketData.Integration
|
||||
/// Indicates whether any network connection is available.
|
||||
/// Filter connections below a specified speed, as well as virtual network cards.
|
||||
/// </summary>
|
||||
/// <param name="minimumSpeed">The minimum speed required. Passing 0 will not filter connection using speed.</param>
|
||||
/// <returns>
|
||||
/// <c>true</c> if a network connection is available; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public static bool IsNetworkAvailable(long minimumSpeed)
|
||||
public static bool IsNetworkAvailable()
|
||||
{
|
||||
if (!NetworkInterface.GetIsNetworkAvailable())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user