Ejemplo n.º 1
0
        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);
                }
            }
        }
Ejemplo n.º 2
0
 public virtual void OnSeriesDelete(SeriesDeleteMessage deleteMessage)
 {
 }