public void HandleAsync(AlbumAddedEvent message) { if (message.DoRefresh) { var updated = EnsureAlbumCovers(message.Album); _eventAggregator.PublishEvent(new MediaCoversUpdatedEvent(message.Album, updated)); } }
public void Handle(AlbumAddedEvent message) { _cache.Remove("AllArtists"); _cache.Remove(message.Album.ArtistId.ToString()); }