static void Main(string[] args) { EnvelopesUI userInterface = new EnvelopesUI(); EnvelopesApp app = new EnvelopesApp(userInterface); logger.Info(new string('-', 50)); if (args.Length > 1) { app.StartWithParams(args); if (!userInterface.IsOneMore()) { Process.GetCurrentProcess().Kill(); } } else { userInterface.ShowHelp(); } do { app.Start(); }while (userInterface.IsOneMore()); }
static void Main(string[] args) { EnvelopesApp _envelopesApp = new EnvelopesApp(); Log.Logger = new LoggerConfiguration().MinimumLevel.Debug().WriteTo.File("log.txt").CreateLogger(); _envelopesApp.Start(args); }