private void DisposeDeviceDiscovery() { try { _deviceDiscovery.Dispose(); } catch (Exception ex) { _logger.ErrorException("Error disposing device discovery", ex); } }
private void DisposeSsdpHandler() { try { _deviceDiscovery.Dispose(); } catch (Exception ex) { _logger.ErrorException("Error disposing device discovery", ex); } try { _ssdpHandler.Dispose(); } catch (Exception ex) { _logger.ErrorException("Error disposing ssdp handler", ex); } }