mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
PathProvider. visit us for all of your pathing needs.
This commit is contained in:
parent
c503b497ed
commit
633f0b6197
24 changed files with 315 additions and 188 deletions
|
@ -43,24 +43,23 @@ namespace NzbDrone.Web
|
|||
//base.OnApplicationStarted();
|
||||
AreaRegistration.RegisterAllAreas();
|
||||
|
||||
var razor =ViewEngines.Engines.Where(e => e.GetType() == typeof (RazorViewEngine)).Single();
|
||||
var razor = ViewEngines.Engines.Where(e => e.GetType() == typeof(RazorViewEngine)).Single();
|
||||
ViewEngines.Engines.Clear();
|
||||
ViewEngines.Engines.Add(razor);
|
||||
|
||||
RegisterGlobalFilters(GlobalFilters.Filters);
|
||||
|
||||
|
||||
Logger.Info("Fully initialized and ready.");
|
||||
}
|
||||
|
||||
protected override IKernel CreateKernel()
|
||||
{
|
||||
LogConfiguration.Setup();
|
||||
var kernel = CentralDispatch.NinjectKernel;
|
||||
kernel.Get<LogConfiguration>().Setup();
|
||||
Logger.Info("NZBDrone Starting up.");
|
||||
|
||||
CentralDispatch.DedicateToHost();
|
||||
|
||||
var kernel = CentralDispatch.NinjectKernel;
|
||||
|
||||
// kernel.Bind<IRepository>().ToConstant(kernel.Get<IRepository>("LogDb"));
|
||||
kernel.Load(Assembly.GetExecutingAssembly());
|
||||
return kernel;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue