mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-03 01:01:34 +02:00
CentralDispatch is no longer static.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user