Exemplo n.º 1
0
        public static async Task RunAsync(this ICommandsHost host, CancellationToken token = default)
        {
            using (host)
            {
                await host.StartAsync(token).ConfigureAwait(false);

                await host.WaitForShutdownAsync(token).ConfigureAwait(false);
            }
        }
Exemplo n.º 2
0
        public BaseCommand(ICommandsHost host)
        {
            DebugClient = host.DebugServices.DebugClient;
            DataTarget  = host.DebugServices.DataTarget;
            Output      = host.DebugServices.Output;
            Host        = host;

            Runtime = host.Runtime;
            Heap    = Runtime.Heap;

            Commands             = host.Commands;
            ExternalCommandNames = host.ExternalCommandNames;
        }
Exemplo n.º 3
0
 public static void Run(this ICommandsHost host)
 {
     host.RunAsync().GetAwaiter().GetResult();
 }
Exemplo n.º 4
0
 public OpenFileCommand(ICommandsHost debugger)
     : base(debugger)
 {
 }
Exemplo n.º 5
0
 public CommandsFactory(ICommandsHost commandsHost)
 {
     _commandsHost = commandsHost;
 }
Exemplo n.º 6
0
 public HelpCommand(ICommandsHost debugger)
     : base(debugger)
 {
 }
Exemplo n.º 7
0
 public DumpDepPropertyCommand(ICommandsHost debugger) : base(debugger)
 {
 }