Esempio n. 1
0
        public void Handle(DownloadCanBeRemovedEvent message)
        {
            var trackedDownload = message.TrackedDownload;
            var downloadClient  = _downloadClientProvider.Get(trackedDownload.DownloadClient);
            var definition      = downloadClient.Definition as DownloadClientDefinition;

            if (trackedDownload.DownloadItem.Removed ||
                !trackedDownload.DownloadItem.CanBeRemoved ||
                !definition.RemoveCompletedDownloads)
            {
                return;
            }

            RemoveFromDownloadClient(message.TrackedDownload, downloadClient);
        }
Esempio n. 2
0
 public void Handle(DownloadCanBeRemovedEvent message)
 {
     // Already verified that it can be removed, just needs to be removed
     RemoveFromDownloadClient(message.TrackedDownload);
 }