/// <summary> /// Entry point. /// </summary> /// <param name="args">Program arguments.</param> public static void Main(string[] args) { ProximaCore.Init(); AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; _textLogger = new TextLogger(LogsDirectory); _consoleManager = new ColorfulConsoleManager(ApplicationName); _configManager = new ConfigManager(ConfigFilename); _ficsCore = new FICSCore(_consoleManager, _configManager, _textLogger); _ficsCore.Run(); while (true) { var text = Console.ReadLine(); if (text != null) { if (text.Contains("quit")) { break; } _ficsCore.Send(text); } } }
/// <summary> /// Entry point. /// </summary> /// <param name="args">Program arguments.</param> public static void Main(string[] args) { _textLogger = new TextLogger(LogsDirectory); AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; ProximaCore.Init(); var consoleManager = new ColorfulConsoleManager(ApplicationName); var configManager = new ConfigManager(ConfigFilename); var ficsCore = new FICSCore(consoleManager, configManager, _textLogger); ficsCore.Run(); while (!Console.ReadLine().Contains("quit")) { ; } }