public void CancelConnect()
{
try
{
if (m_isConnecting && m_socketConnectionArgs != null)
{
Socket.CancelConnectAsync(m_socketConnectionArgs);
m_socket.Close();
}
//else
//{
// logger.Warn("SilverlightTCPSIPChannel CancelConnect was called on a socket that's not in the connecting state.");
//}
}
catch (Exception excp)
{
logger.Error("Exception SilverlightTCPSIPChannel CancelConnect. " + excp.Message);
}
}