public void Handle(AuthorDeletedEvent message) { var deleteMessage = new AuthorDeleteMessage(message.Author, message.DeleteFiles); foreach (var notification in _notificationFactory.OnAuthorDeleteEnabled()) { try { if (ShouldHandleAuthor(notification.Definition, deleteMessage.Author)) { notification.OnAuthorDelete(deleteMessage); } } catch (Exception ex) { _logger.Warn(ex, "Unable to send OnAuthorDelete notification to: " + notification.Definition.Name); } } }
public virtual void OnAuthorDelete(AuthorDeleteMessage deleteMessage) { }