public void Handle(SeriesDeletedEvent message) { var deleteMessage = new SeriesDeleteMessage(message.Series, message.DeleteFiles); foreach (var notification in _notificationFactory.OnSeriesDeleteEnabled()) { try { if (ShouldHandleSeries(notification.Definition, deleteMessage.Series)) { notification.OnSeriesDelete(deleteMessage); } } catch (Exception ex) { _logger.Warn(ex, "Unable to send OnDelete notification to: " + notification.Definition.Name); } } }