コード例 #1
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="url">Device URL.</param>
        internal SatIpDevice(string url)
        {
            if (url == null)
            {
                throw new ArgumentNullException("url");
            }

            Init(new Uri(url));
            _rtspSession = new RtspSession(_baseUrl.Host);
        }
コード例 #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             if (_rtspSession != null)
             {
                 _rtspSession.Dispose();
                 _rtspSession = null;
             }
         }
     }
     _disposed = true;
 }