Beispiel #1
0
 protected ShellApplication()
 {
     output = new ConsoleOutputDevice(System.Console.Out, true);
     message = new ConsoleOutputDevice(System.Console.Error, false);
     input = new ConsoleInputDevice();
     dispatcher = new CommandDispatcher(this);
     if (this is ISettingsHandler)
         settings = new ApplicationSettings(this);
     if (this is IPropertyHandler)
         properties = new PropertyRegistry(this as IPropertyHandler);
     if (this is IPluginHandler)
         plugins = new ApplicationPlugins(this);
     interruptHandler = new ApplicationInterruptionHandler(this);
 }
Beispiel #2
0
 protected ShellApplication()
 {
     output     = new ConsoleOutputDevice(System.Console.Out, true);
     message    = new ConsoleOutputDevice(System.Console.Error, false);
     input      = new ConsoleInputDevice();
     dispatcher = new CommandDispatcher(this);
     if (this is ISettingsHandler)
     {
         settings = new ApplicationSettings(this);
     }
     if (this is IPropertyHandler)
     {
         properties = new PropertyRegistry(this as IPropertyHandler);
     }
     if (this is IPluginHandler)
     {
         plugins = new ApplicationPlugins(this);
     }
     interruptHandler = new ApplicationInterruptionHandler(this);
 }