mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
split MessageAggregator in EventAggregator and CommandExecutor
This commit is contained in:
parent
909439f615
commit
64181ebdff
83 changed files with 296 additions and 233 deletions
|
@ -7,6 +7,7 @@ using NzbDrone.Core.Download;
|
|||
using NzbDrone.Core.Download.Clients.Nzbget;
|
||||
using NzbDrone.Core.Download.Clients.Sabnzbd;
|
||||
using NzbDrone.Core.Messaging;
|
||||
using NzbDrone.Core.Messaging.Events;
|
||||
|
||||
|
||||
namespace NzbDrone.Core.Configuration
|
||||
|
@ -19,14 +20,14 @@ namespace NzbDrone.Core.Configuration
|
|||
public class ConfigService : IConfigService
|
||||
{
|
||||
private readonly IConfigRepository _repository;
|
||||
private readonly IMessageAggregator _messageAggregator;
|
||||
private readonly IEventAggregator _eventAggregator;
|
||||
private readonly Logger _logger;
|
||||
private static Dictionary<string, string> _cache;
|
||||
|
||||
public ConfigService(IConfigRepository repository, IMessageAggregator messageAggregator, Logger logger)
|
||||
public ConfigService(IConfigRepository repository, IEventAggregator eventAggregator, Logger logger)
|
||||
{
|
||||
_repository = repository;
|
||||
_messageAggregator = messageAggregator;
|
||||
_eventAggregator = eventAggregator;
|
||||
_logger = logger;
|
||||
_cache = new Dictionary<string, string>();
|
||||
}
|
||||
|
@ -69,7 +70,7 @@ namespace NzbDrone.Core.Configuration
|
|||
SetValue(configValue.Key, configValue.Value.ToString());
|
||||
}
|
||||
|
||||
_messageAggregator.PublishEvent(new ConfigSavedEvent());
|
||||
_eventAggregator.PublishEvent(new ConfigSavedEvent());
|
||||
}
|
||||
|
||||
public String SabHost
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue