public void OnArtist(Artist artist) { _log.Info("Looking for artist collections of " + artist.Id); foreach (var collection in _mongo.GetArtistCollections(artist.Id)) { if (collection is ArtistCollection c) { Context.Parent.Tell( new AlbumArtistMessage(artist, c.CollectionId)); } } }