Ejemplo n.º 1
0
        } // Close

        private void Clean()
        {
            if (Storage != null)
            {
                Storage = null;
            }
        } // Clean
Ejemplo n.º 2
0
        } // Close

        private void Clean()
        {
            if (_storage != null)
            {
                _storage = null;
            }
            if (_receivedSegments != null)
            {
                _receivedSegments = null;
            }
        } // Clean
Ejemplo n.º 3
0
        } // constructor

        public void DownloadStream()
        {
            try
            {
                Storage = new PayloadStorage(true);
                Storage.SegmentPayloadReceived += Storage_SegmentPayloadReceived;
                ReceiveData();
            }
            finally
            {
                Close();
            } // try-finally
        }     // ExplorerMulticastStream
Ejemplo n.º 4
0
        } // constructor

        public void DownloadStream(double threshold = 0)
        {
            try
            {
                if (threshold >= 0.01)
                {
                    _threshold        = threshold;
                    _receivedSegments = new System.Collections.BitArray(ushort.MaxValue + 1);
                } // if

                _storage = new PayloadStorage(true);
                _storage.SegmentPayloadReceived += PayloadReceived;
                ReceiveData();
            }
            finally
            {
                Close();
            } // try-finally
        }     // DownloadStream