예제 #1
0
        internal virtual object?Send(IAgentMessage message)
        {
            using var socketStream = new SshAgentSocketStream(_socketPath);
            using var writer       = new AgentWriter(socketStream);
            using var reader       = new AgentReader(socketStream);

            message.To(writer);
            return(message.From(reader));
        }
예제 #2
0
        internal override object?Send(IAgentMessage message)
        {
            using var socketStream = new PageantSocketStream();
            using var writer       = new AgentWriter(socketStream);
            using var reader       = new AgentReader(socketStream);

            message.To(writer);
            socketStream.Send();
            return(message.From(reader));
        }