コード例 #1
0
        public void Handle(DownloadFailedEvent message)
        {
            var downloadFailedMessage = new DownloadFailedMessage
            {
                DownloadId     = message.DownloadId,
                DownloadClient = message.DownloadClient,
                Quality        = message.Quality,
                SourceTitle    = message.SourceTitle,
                Message        = message.Message
            };

            foreach (var notification in _notificationFactory.OnDownloadFailureEnabled())
            {
                if (ShouldHandleArtist(notification.Definition, message.TrackedDownload.RemoteBook.Author))
                {
                    notification.OnDownloadFailure(downloadFailedMessage);
                }
            }
        }
コード例 #2
0
ファイル: NotificationBase.cs プロジェクト: whoshoe/Readarr
 public virtual void OnDownloadFailure(DownloadFailedMessage message)
 {
 }