mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
upgraded nancy bootstrapers to 0.18.0
This commit is contained in:
parent
bd4bd47e4e
commit
93b0cf4be9
10 changed files with 114 additions and 85 deletions
|
@ -44,18 +44,6 @@ namespace NzbDrone.Api
|
|||
return _tinyIoCContainer;
|
||||
}
|
||||
|
||||
protected override NancyInternalConfiguration InternalConfiguration
|
||||
{
|
||||
get
|
||||
{
|
||||
var internalConfig = NancyInternalConfiguration.Default;
|
||||
|
||||
internalConfig.StatusCodeHandlers.Add(typeof(ErrorHandler));
|
||||
internalConfig.Serializers.Add(typeof(NancyJsonSerializer));
|
||||
|
||||
return internalConfig;
|
||||
}
|
||||
}
|
||||
|
||||
protected override DiagnosticsConfiguration DiagnosticsConfiguration
|
||||
{
|
||||
|
@ -76,10 +64,5 @@ namespace NzbDrone.Api
|
|||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void Shutdown()
|
||||
{
|
||||
ApplicationContainer.Resolve<IMessageAggregator>().PublishEvent(new ApplicationShutdownRequested());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue