コード例 #1
0
ファイル: ShellApplication.cs プロジェクト: deveel/dshell
 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);
 }
コード例 #2
0
ファイル: ShellApplication.cs プロジェクト: meikeric/dshell
 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);
 }