upgraded nancy bootstrapers to 0.18.0

This commit is contained in:
Keivan Beigi 2013-08-19 18:45:19 -07:00
commit 93b0cf4be9
10 changed files with 114 additions and 85 deletions

View file

@ -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());
}
}
}