示例#1
0
        private void WriteCommand <T>(T data, [CallerMemberName] string command = "")
        {
            SessionLog.WriteLine($"Sending {command} to debuggee");
            var dto = RpcCall.Create(nameof(IDebuggerService), command, data);

            _commandsChannel.Write(dto);
        }
示例#2
0
        public void Write(object data)
        {
            if (_connectedChannel == null)
            {
                throw new InvalidOperationException("No client connected");
            }

            _connectedChannel.Write(data);
        }