using NzbDrone.Core.Messaging.Commands; using NzbDrone.Core.Messaging.Events; using NzbDrone.Core.ThingiProvider.Events; namespace NzbDrone.Core.ImportLists { public class ImportListUpdatedHandler : IHandle>, IHandle> { private readonly IManageCommandQueue _commandQueueManager; public ImportListUpdatedHandler(IManageCommandQueue commandQueueManager) { _commandQueueManager = commandQueueManager; } public void Handle(ProviderUpdatedEvent message) { _commandQueueManager.Push(new ImportListSyncCommand(message.Definition.Id)); } public void Handle(ProviderAddedEvent message) { _commandQueueManager.Push(new ImportListSyncCommand(message.Definition.Id)); } } }