public override void Dispose()
        {
            base.Dispose();

            downloader?.Dispose();
            downloader = null;
        }
        public override void Dispose()
        {
            base.Dispose();

            // Free managed resources
            _downloader?.Dispose();
            _downloader = null;
        }
Exemplo n.º 3
0
        private void downloader_DownloadFileCompleted(object sender, string DestinationFile)
        {
            if (DownloadFileCompleted != null)
            {
                DownloadFileCompleted(sender, DestinationFile);
            }

            RemoveDownloadHandlers(_fileDownload);
            _fileDownload.Dispose();
            _thread = null;
        }