azure-relay icon indicating copy to clipboard operation
azure-relay copied to clipboard

Portbridge sample, class TcpClientConnectionForwarder.cs, remove line Stream socketStream = tcpConnection.GetStream();

Open RobDaPraia opened this issue 7 years ago • 2 comments

Description

Studying the code for the portbridge example, noticed that the line in the code block below can be removed in the class TcpClientConnectionForwarder, method void ClientAccepted(IAsyncResult asyncResult), the variable socketStream is not used in this method

Stream socketStream = tcpConnection.GetStream();

RobDaPraia avatar Apr 11 '17 11:04 RobDaPraia

@RobDaPraia - You are talking about this line, correct?

https://github.com/Azure/azure-relay/blob/master/samples/Hybrid%20Connections/DotNet/portbridge/PortBridge/TcpClientConnectionForwarder.cs#L133

@clemensv - Would you agree?

jtaubensee avatar Apr 11 '17 19:04 jtaubensee

Yes indeed,

RobDaPraia avatar Apr 12 '17 05:04 RobDaPraia