2010-10-13 23:29:01 -07:00
|
|
|
using System;
|
|
|
|
using NLog;
|
2011-10-06 20:37:41 -07:00
|
|
|
using Ninject;
|
2011-10-06 18:30:44 -07:00
|
|
|
|
2010-10-10 12:00:07 -07:00
|
|
|
namespace NzbDrone
|
2010-09-22 20:19:47 -07:00
|
|
|
{
|
2011-10-06 20:37:41 -07:00
|
|
|
internal static class Program
|
2010-09-22 20:19:47 -07:00
|
|
|
{
|
2011-10-06 20:37:41 -07:00
|
|
|
public static readonly StandardKernel Kernel = new StandardKernel();
|
2010-10-13 23:29:01 -07:00
|
|
|
|
2011-10-06 20:37:41 -07:00
|
|
|
private static readonly Logger Logger = LogManager.GetLogger("Main");
|
2011-10-06 18:30:44 -07:00
|
|
|
|
2011-04-09 19:44:01 -07:00
|
|
|
private static void Main()
|
2010-10-13 23:29:01 -07:00
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
2011-10-06 20:37:41 -07:00
|
|
|
Console.WriteLine("Starting Console.");
|
|
|
|
Kernel.Get<Application>().Start();
|
2011-04-22 10:09:06 -07:00
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
2011-10-06 20:37:41 -07:00
|
|
|
Console.WriteLine(e.ToString());
|
|
|
|
Logger.Fatal(e.ToString());
|
2011-04-22 10:09:06 -07:00
|
|
|
}
|
2011-04-25 11:41:20 -07:00
|
|
|
|
|
|
|
Console.WriteLine("Press enter to exit.");
|
|
|
|
Console.ReadLine();
|
2011-04-22 10:09:06 -07:00
|
|
|
}
|
2010-09-22 20:19:47 -07:00
|
|
|
}
|
2011-04-09 19:44:01 -07:00
|
|
|
}
|