public void Handle(AuthorRenamedEvent message) { var author = message.Author; var bookFiles = GetBookFiles(author.Id); foreach (var extraFileManager in _extraFileManagers) { extraFileManager.MoveFilesAfterRename(author, bookFiles); } }
public void Handle(AuthorRenamedEvent message) { foreach (var notification in _notificationFactory.OnRenameEnabled()) { try { if (ShouldHandleArtist(notification.Definition, message.Author)) { notification.OnRename(message.Author); } } catch (Exception ex) { _logger.Warn(ex, "Unable to send OnRename notification to: " + notification.Definition.Name); } } }
public void Handle(AuthorRenamedEvent message) { BroadcastResourceChange(ModelAction.Updated, message.Author.Id); }