Example #1
0
        } // Close

        private void Clean()
        {
            if (Storage != null)
            {
                Storage = null;
            }
        } // Clean
Example #2
0
        } // Close

        private void Clean()
        {
            if (_storage != null)
            {
                _storage = null;
            }
            if (_receivedSegments != null)
            {
                _receivedSegments = null;
            }
        } // Clean
Example #3
0
        } // constructor

        public void DownloadStream()
        {
            try
            {
                Storage = new PayloadStorage(true);
                Storage.SegmentPayloadReceived += Storage_SegmentPayloadReceived;
                ReceiveData();
            }
            finally
            {
                Close();
            } // try-finally
        }     // ExplorerMulticastStream
Example #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