static void CleanupTestControllers() { if (localWFDController != null) { localWFDController.Dispose(); localWFDController = null; } if (remoteWFDController != null) { remoteWFDController.Dispose(); remoteWFDController = null; } }
static void CleanupTestControllers() { // Try to remove existing DAF association (if it exists) if (localWFDController != null && remoteWFDController != null) { localWFDController.TryRemoveDafAssociation(remoteWFDController.DeviceAddress); remoteWFDController.TryRemoveDafAssociation(localWFDController.DeviceAddress); } if (localWFDController != null) { localWFDController.Dispose(); localWFDController = null; } if (remoteWFDController != null) { remoteWFDController.Dispose(); remoteWFDController = null; } }