Beispiel #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);
            }
        }
        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;
        }
Beispiel #3
0
 public static void Run(this ICommandsHost host)
 {
     host.RunAsync().GetAwaiter().GetResult();
 }
Beispiel #4
0
 public OpenFileCommand(ICommandsHost debugger)
     : base(debugger)
 {
 }
Beispiel #5
0
 public CommandsFactory(ICommandsHost commandsHost)
 {
     _commandsHost = commandsHost;
 }
Beispiel #6
0
 public HelpCommand(ICommandsHost debugger)
     : base(debugger)
 {
 }
Beispiel #7
0
 public DumpDepPropertyCommand(ICommandsHost debugger) : base(debugger)
 {
 }