using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tango.Console { public class ConsoleCommandExecutingEventArgs : EventArgs { private Action _completedAction; public ConsoleCommand Command { get; private set; } public ConsoleCommandExecutingEventArgs(ConsoleCommand command, Action completedAction) { Command = command; _completedAction = completedAction; } public void Complete(ConsoleCommandExecutionResult result) { _completedAction.Invoke(result); } } }