You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
644 B
23 lines
644 B
5 years ago
|
using NzbDrone.Core.Messaging.Commands;
|
||
|
using NzbDrone.Core.Messaging.Events;
|
||
|
using NzbDrone.Core.Music.Commands;
|
||
|
using NzbDrone.Core.Music.Events;
|
||
|
|
||
|
namespace NzbDrone.Core.Music
|
||
|
{
|
||
|
public class AlbumAddedHandler : IHandle<AlbumAddedEvent>
|
||
|
{
|
||
|
private readonly IManageCommandQueue _commandQueueManager;
|
||
|
|
||
|
public AlbumAddedHandler(IManageCommandQueue commandQueueManager)
|
||
|
{
|
||
|
_commandQueueManager = commandQueueManager;
|
||
|
}
|
||
|
|
||
|
public void Handle(AlbumAddedEvent message)
|
||
|
{
|
||
|
_commandQueueManager.Push(new RefreshArtistCommand(message.Album.Artist.Value.Id));
|
||
|
}
|
||
|
}
|
||
|
}
|