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.
22 lines
666 B
22 lines
666 B
using NzbDrone.Core.Messaging.Commands;
|
|
using NzbDrone.Core.Messaging.Events;
|
|
using NzbDrone.Core.ThingiProvider.Events;
|
|
|
|
namespace NzbDrone.Core.ImportLists
|
|
{
|
|
public class ImportListUpdatedHandler : IHandle<ProviderUpdatedEvent<IImportList>>
|
|
{
|
|
private readonly IManageCommandQueue _commandQueueManager;
|
|
|
|
public ImportListUpdatedHandler(IManageCommandQueue commandQueueManager)
|
|
{
|
|
_commandQueueManager = commandQueueManager;
|
|
}
|
|
|
|
public void Handle(ProviderUpdatedEvent<IImportList> message)
|
|
{
|
|
_commandQueueManager.Push(new ImportListSyncCommand(message.Definition.Id));
|
|
}
|
|
}
|
|
}
|