Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/blame/commit/ac84d76ef9dd4a30435c84255aa9c1b07dbcc3e4/packages/Ninject.MVC3.2.2.2.0/Content/App_Start/NinjectMVC3.cs.pp
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
[assembly: WebActivator.PreApplicationStartMethod(typeof($rootnamespace$.App_Start.NinjectMVC3), "Start")]
|
|
|
|
|
[assembly: WebActivator.ApplicationShutdownMethodAttribute(typeof($rootnamespace$.App_Start.NinjectMVC3), "Stop")]
|
|
|
|
|
|
|
|
|
|
namespace $rootnamespace$.App_Start
|
|
|
|
|
{
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using Microsoft.Web.Infrastructure.DynamicModuleHelper;
|
|
|
|
|
using Ninject;
|
|
|
|
|
using Ninject.Web.Mvc;
|
|
|
|
|
|
|
|
|
|
public static class NinjectMVC3
|
|
|
|
|
{
|
|
|
|
|
private static readonly Bootstrapper bootstrapper = new Bootstrapper();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Starts the application
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static void Start()
|
|
|
|
|
{
|
|
|
|
|
DynamicModuleUtility.RegisterModule(typeof(OnePerRequestModule));
|
|
|
|
|
DynamicModuleUtility.RegisterModule(typeof(HttpApplicationInitializationModule));
|
|
|
|
|
bootstrapper.Initialize(CreateKernel);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Stops the application.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static void Stop()
|
|
|
|
|
{
|
|
|
|
|
bootstrapper.ShutDown();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates the kernel that will manage your application.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>The created kernel.</returns>
|
|
|
|
|
private static IKernel CreateKernel()
|
|
|
|
|
{
|
|
|
|
|
var kernel = new StandardKernel();
|
|
|
|
|
RegisterServices(kernel);
|
|
|
|
|
return kernel;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Load your modules or register your services here!
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="kernel">The kernel.</param>
|
|
|
|
|
private static void RegisterServices(IKernel kernel)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|