using System;
using System.Diagnostics;
using Chernobyl.Config;
namespace Chernobyl.Run
{
///
/// The main application program.
///
class Program
{
///
/// The starting method of the application.
///
/// The applications arguments.
static void Main(string[] args)
{
#if DEBUG // Visual Studio won't stop on an exception if you catch the exception
Core chernobyl = new Core();
chernobyl.Run();
#else
try
{
Core chernobyl = new Core();
chernobyl.Run();
}
catch (Exception ex)
{
Trace.TraceEvent(TraceEventType.Critical, 0, ex.ToString());
throw;
}
#endif
}
///
/// A used to output errors, warnings, information,
/// etc., that are specific to Chernobyl.Run. This
/// will have the name "Chernobyl.Run".
///
static TraceSource Trace { get; set; }
}
}