private void DeviceRemoved(CpDeviceList aList, ICpDevice aDevice)
{
/* The device stack sends byebyes then alives for each newly enabled device.
These can be interleaved with responses to a msearch and can cause tests to misbehave,
thinking a device has been removed. The simplest way to work around this is to say
our test guarantees that a device remains available as long as its needed then take
advantage of this by ignoring device removed callbacks. */
/*lock (this)
{
string udn = aDevice.Udn();
int count = iDeviceList.Count;
for (int i = 0; i < count; i++)
{
if (iDeviceList[i].Udn() == udn)
{
iDeviceList.RemoveAt(i);
iDeviceList[i].RemoveRef();
}
}
}*/
}