/// <summary> /// Send a command packet to the VM /// </summary> /// <param name="command"></param> /// <returns></returns> public Task SendCommandAsync(JdwpCommand command) { var waitingOperation = new WaitingOperationDescriptor(command); lock (_waitingOperations) { _waitingOperations.Add(command.PacketId, waitingOperation); } SendToTransport(command); return(waitingOperation.Task); }
private void SendToTransport(JdwpCommand command) { _transport.Send(command.GetPacketBytes()); }
public WaitingOperationDescriptor(JdwpCommand command) { _command = command; }