_EthernetCableStateChanged -= value;
if (_EthernetCableStateChanged == null)
{
- EthernetCableStateChangedtop();
+ EthernetCableStateChangedStop();
}
}
}
if ((ConnectionError)ret != ConnectionError.None)
{
Log.Error(Globals.LogTag, "It failed to register ethernet cable state changed callback, " + (ConnectionError)ret);
+ ConnectionErrorFactory.ThrowConnectionException(ret);
}
}
- static private void EthernetCableStateChangedtop()
+ static private void EthernetCableStateChangedStop()
{
int ret = Interop.Connection.UnsetEthernetCableStateChagedCallback(ConnectionInternalManager.GetHandle());
if ((ConnectionError)ret != ConnectionError.None)
{
Log.Error(Globals.LogTag, "It failed to unregister ethernet cable state changed callback, " + (ConnectionError)ret);
+ ConnectionErrorFactory.ThrowConnectionException(ret);
}
}
}
ProxyAddressChangedStop();
ConnectionTypeChangedStop();
- EthernetCableStateChangedtop();
+ EthernetCableStateChangedStop();
IpAddressChangedStop();
disposed = true;
}