mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Added ProgressMessaging through nlog
This commit is contained in:
parent
3c632743a1
commit
780e374122
9 changed files with 128 additions and 12 deletions
|
@ -9,6 +9,7 @@ using NzbDrone.Api.Extensions.Pipelines;
|
|||
using NzbDrone.Common.Messaging;
|
||||
using NzbDrone.Core.Instrumentation;
|
||||
using NzbDrone.Core.Lifecycle;
|
||||
using NzbDrone.Core.ProgressMessaging;
|
||||
using TinyIoC;
|
||||
|
||||
namespace NzbDrone.Api
|
||||
|
@ -28,14 +29,12 @@ namespace NzbDrone.Api
|
|||
{
|
||||
_logger.Info("Starting NzbDrone API");
|
||||
|
||||
|
||||
RegisterPipelines(pipelines);
|
||||
|
||||
container.Resolve<DatabaseTarget>().Register();
|
||||
container.Resolve<IEnableBasicAuthInNancy>().Register(pipelines);
|
||||
container.Resolve<IMessageAggregator>().PublishEvent(new ApplicationStartedEvent());
|
||||
|
||||
|
||||
ApplicationPipelines.OnError.AddItemToEndOfPipeline(container.Resolve<NzbDroneErrorPipeline>().HandleException);
|
||||
}
|
||||
|
||||
|
@ -47,10 +46,8 @@ namespace NzbDrone.Api
|
|||
{
|
||||
registerNancyPipeline.Register(pipelines);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
protected override TinyIoCContainer GetApplicationContainer()
|
||||
{
|
||||
return _tinyIoCContainer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue