예제 #1
0
/// <summary>
/// Main method. Starts application.
/// </summary>
        private static void Main()
        {
            var app = new PersonalFezisstant();
            var commandProcessor = new ApplicationCommandProcessor(app);

            app.StartIrcClient();
            do
            {
                var cmd = Console.ReadLine();
                commandProcessor.Process(cmd);
            }while (app.IsRunning);
            Log.Information("Exiting PersonalFezisstant");
            Environment.Exit(0);
        }
예제 #2
0
 public ApplicationCommandProcessor(PersonalFezisstant app)
 {
     PFApp = app;
 }