mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-02 16:52:04 +02:00
added commands.
they can be triggered using the api api/command/
This commit is contained in:
@@ -30,7 +30,7 @@ namespace NzbDrone.Api
|
||||
AutomapperBootstraper.InitializeAutomapper();
|
||||
RegisterReporting(container);
|
||||
|
||||
container.Resolve<IMessageAggregator>().Publish(new ApplicationStartedEvent());
|
||||
container.Resolve<IMessageAggregator>().PublishEvent(new ApplicationStartedEvent());
|
||||
|
||||
ApplicationPipelines.OnError.AddItemToEndOfPipeline(container.Resolve<ErrorPipeline>().HandleException);
|
||||
}
|
||||
@@ -73,7 +73,7 @@ namespace NzbDrone.Api
|
||||
|
||||
public void Shutdown()
|
||||
{
|
||||
ApplicationContainer.Resolve<IMessageAggregator>().Publish(new ApplicationShutdownRequested());
|
||||
ApplicationContainer.Resolve<IMessageAggregator>().PublishEvent(new ApplicationShutdownRequested());
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user