Remove IsAvailable

Addresses #275, #252, #208, #154.
This commit is contained in:
Michael Croes
2020-09-08 23:04:26 +02:00
parent 54f3de6c9f
commit 2b4ec6d9dd
2 changed files with 10 additions and 22 deletions

View File

@@ -75,26 +75,6 @@ namespace S7.Net
if (tcpClient != null) tcpClient.SendTimeout = writeTimeout;
}
}
/// <summary>
/// Returns true if a connection to the PLC can be established
/// </summary>
public bool IsAvailable
{
//TODO: Fix This
get
{
try
{
OpenAsync().GetAwaiter().GetResult();
return true;
}
catch
{
return false;
}
}
}
/// <summary>
/// Checks if the socket is connected and polls the other peer (the PLC) to see if it's connected.