コード例 #1
0
 private void DisposeDeviceDiscovery()
 {
     try
     {
         _deviceDiscovery.Dispose();
     }
     catch (Exception ex)
     {
         _logger.ErrorException("Error disposing device discovery", ex);
     }
 }
コード例 #2
0
        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);
            }
        }