private static void Main(string[] args) { dispatcher dsp = new dispatcher(); try { Console.WriteLine(Configuration.getVersion()); Console.WriteLine(Configuration.getdotNet()); resultClass token = dsp.dispatch(args); if (token.debug) { Console.WriteLine("Successful completion."); } dsp.Elapsed_Time(); if (token.test) { Console.ReadKey(); } } catch (Exception ex) { dsp.Elapsed_Time(); Console.WriteLine(ex.ToString()); if (_options.test) { Console.ReadKey(); } } }
private static void Main(string[] args) { Configuration.configuration(args); dispatcher dsp = new dispatcher(); resultClass token = dsp.dispatch(); if (token.debug) { Console.ReadKey(); } }
private static void Main(string[] args) { try { Configuration.configuration(args); dispatcher dsp = new dispatcher(); resultClass token = dsp.dispatch(); if (_options.debug) { Console.ReadKey(); } } catch (Exception ex) { Console.Error.WriteLine(ex.Message); if (_options.debug) { Console.ReadKey(); } } }