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; }
public ExitCommand(ConsoleTerminalCancellation cancellation) { this.cancellation = cancellation; }
public ShutdownCommand(ICremaHost cremaHost, ConsoleTerminalCancellation cancellation) { this.cremaHost = cremaHost; this.cancellation = cancellation; }