Esempio n. 1
0
 public ConsoleTerminal(ICremaHost cremaHost,
                        CremaApplication application,
                        ConsoleCommandContext commandContext,
                        ConsoleTerminalCancellation cancellation)
     : base(commandContext)
 {
     this.cremaHost           = cremaHost;
     this.cremaHost.Opened   += (s, e) => this.IsEnabled = true;
     this.cremaHost.Closing  += (s, e) => this.IsEnabled = false;
     this.application         = application;
     this.application.Closed += Application_Closed;
     this.cancellation        = cancellation;
 }
Esempio n. 2
0
 public ExitCommand(ConsoleTerminalCancellation cancellation)
 {
     this.cancellation = cancellation;
 }
Esempio n. 3
0
 public ShutdownCommand(ICremaHost cremaHost, ConsoleTerminalCancellation cancellation)
 {
     this.cremaHost    = cremaHost;
     this.cancellation = cancellation;
 }