private void StartServer()
        {
            var signature = GenerateServerSignature();

            lock (_syncLock)
            {
                try
                {
                    _ssdpHandler = new SsdpHandler(_logger, _config, signature);
                }
                catch (Exception ex)
                {
                    _logger.ErrorException("Error starting Dlna server", ex);
                }
            }
        }
 private void DisposeServer()
 {
     lock (_syncLock)
     {
         if (_ssdpHandler != null)
         {
             try
             {
                 _ssdpHandler.Dispose();
             }
             catch (Exception ex)
             {
                 _logger.ErrorException("Error disposing Dlna server", ex);
             }
             _ssdpHandler = null;
         }
     }
 }
Exemple #3
0
 private void DisposeServer()
 {
     lock (_syncLock)
     {
         if (_ssdpHandler != null)
         {
             try
             {
                 _ssdpHandler.Dispose();
             }
             catch (Exception ex)
             {
                 _logger.ErrorException("Error disposing Dlna server", ex);
             }
             _ssdpHandler = null;
         }
     }
 }
Exemple #4
0
        private void StartServer()
        {
            var signature = GenerateServerSignature();

            lock (_syncLock)
            {
                try
                {
                    _ssdpHandler = new SsdpHandler(_logger, _config, signature);

                    RegisterEndpoints();
                }
                catch (Exception ex)
                {
                    _logger.ErrorException("Error starting Dlna server", ex);
                }
            }
        }