mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
renamed EventAggregator to MessageAggregator
This commit is contained in:
parent
3638d85314
commit
7ae9e79540
53 changed files with 161 additions and 125 deletions
|
@ -6,7 +6,7 @@ using NzbDrone.Api.ErrorManagement;
|
|||
using NzbDrone.Api.Extensions;
|
||||
using NzbDrone.Api.Frontend;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Common.Eventing;
|
||||
using NzbDrone.Common.Messaging;
|
||||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.Lifecycle;
|
||||
using TinyIoC;
|
||||
|
@ -30,7 +30,7 @@ namespace NzbDrone.Api
|
|||
AutomapperBootstraper.InitializeAutomapper();
|
||||
RegisterReporting(container);
|
||||
|
||||
container.Resolve<IEventAggregator>().Publish(new ApplicationStartedEvent());
|
||||
container.Resolve<IMessageAggregator>().Publish(new ApplicationStartedEvent());
|
||||
|
||||
ApplicationPipelines.OnError.AddItemToEndOfPipeline(container.Resolve<ErrorPipeline>().HandleException);
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ namespace NzbDrone.Api
|
|||
|
||||
public void Shutdown()
|
||||
{
|
||||
ApplicationContainer.Resolve<IEventAggregator>().Publish(new ApplicationShutdownRequested());
|
||||
ApplicationContainer.Resolve<IMessageAggregator>().Publish(new ApplicationShutdownRequested());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue