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); } } }
public virtual void OnDownloadFailure(DownloadFailedMessage message) { }