CentralDispatch is no longer static.

This commit is contained in:
kay.one
2011-11-08 12:12:54 -08:00
parent ae9e941b30
commit ca7deedfb9
6 changed files with 82 additions and 86 deletions

View File

@@ -54,13 +54,14 @@ namespace NzbDrone.Web
protected override IKernel CreateKernel()
{
var kernel = CentralDispatch.NinjectKernel;
var dispatch = new CentralDispatch();
Logger.Info("NzbDrone Starting up.");
CentralDispatch.DedicateToHost();
dispatch.DedicateToHost();
kernel.Load(Assembly.GetExecutingAssembly());
return kernel;
dispatch.Kernel.Load(Assembly.GetExecutingAssembly());
return dispatch.Kernel;
}