using System; using NLog; using Ninject; using NzbDrone.Providers; namespace NzbDrone { public static class Program { public static readonly StandardKernel Kernel = new StandardKernel(); private static readonly Logger Logger = LogManager.GetLogger("Host.Main"); private static void Main() { try { Kernel.Bind().ToSelf().InSingletonScope(); Kernel.Bind().ToSelf().InSingletonScope(); Kernel.Bind().ToSelf().InSingletonScope(); Kernel.Bind().ToSelf().InSingletonScope(); Kernel.Bind().ToSelf().InSingletonScope(); Kernel.Bind().ToSelf().InSingletonScope(); Kernel.Bind().ToSelf().InSingletonScope(); Kernel.Bind().ToSelf().InSingletonScope(); Kernel.Bind().ToSelf().InSingletonScope(); Console.WriteLine("Starting Console."); Kernel.Get().Start(); Kernel.Get().Start(); } catch (Exception e) { Console.WriteLine(e.ToString()); Logger.Fatal(e.ToString()); } Console.WriteLine("Press enter to exit."); Console.ReadLine(); } } }