Esempio n. 1
0
        public void HandleAsync(AlbumAddedEvent message)
        {
            if (message.DoRefresh)
            {
                var updated = EnsureAlbumCovers(message.Album);

                _eventAggregator.PublishEvent(new MediaCoversUpdatedEvent(message.Album, updated));
            }
        }
Esempio n. 2
0
 public void Handle(AlbumAddedEvent message)
 {
     _cache.Remove("AllArtists");
     _cache.Remove(message.Album.ArtistId.ToString());
 }