2011-10-14 04:22:51 +03:00
|
|
|
using System;
|
|
|
|
using System.Reflection;
|
|
|
|
using Ninject;
|
2011-10-17 04:42:20 +03:00
|
|
|
using NzbDrone.Providers;
|
2011-10-14 04:22:51 +03:00
|
|
|
|
|
|
|
namespace NzbDrone
|
|
|
|
{
|
|
|
|
public static class AppMain
|
|
|
|
{
|
|
|
|
public static void Main(string[] args)
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
|
|
|
Console.WriteLine("Starting NzbDrone Console. Version " + Assembly.GetExecutingAssembly().GetName().Version);
|
|
|
|
|
|
|
|
CentralDispatch.Kernel.Get<Router>().Route(args);
|
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
2011-10-17 04:42:20 +03:00
|
|
|
MonitoringProvider.AppDomainException(e);
|
2011-10-14 04:22:51 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|