} // Close private void Clean() { if (Storage != null) { Storage = null; } } // Clean
} // Close private void Clean() { if (_storage != null) { _storage = null; } if (_receivedSegments != null) { _receivedSegments = null; } } // Clean
} // constructor public void DownloadStream() { try { Storage = new PayloadStorage(true); Storage.SegmentPayloadReceived += Storage_SegmentPayloadReceived; ReceiveData(); } finally { Close(); } // try-finally } // ExplorerMulticastStream
} // 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