Пример #1
0
        public void Handle(MoviesDeletedEvent message)
        {
            foreach (Movie movie in message.Movies)
            {
                var deleteMessage = new MovieDeleteMessage(movie, message.DeleteFiles);

                foreach (var notification in _notificationFactory.OnMovieDeleteEnabled())
                {
                    try
                    {
                        if (ShouldHandleMovie(notification.Definition, deleteMessage.Movie))
                        {
                            notification.OnMovieDelete(deleteMessage);
                        }
                    }
                    catch (Exception ex)
                    {
                        _logger.Warn(ex, "Unable to send OnMovieDelete notification to: " + notification.Definition.Name);
                    }
                }
            }
        }
Пример #2
0
 public virtual void OnMovieDelete(MovieDeleteMessage deleteMessage)
 {
 }