6 instantiations of TcpClient
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
TcpEndpointProbesServiceTests.cs (1)
102using TcpClient tcpClient = new TcpClient();
Microsoft.TestPlatform.CommunicationUtilities (2)
SocketClient.cs (1)
42_tcpClient = new TcpClient { NoDelay = true };
SocketCommunicationManager.cs (1)
176_tcpClient = new TcpClient { NoDelay = true };
System.Net.Mail (1)
System\Net\Mail\SmtpConnection.cs (1)
45_tcpClient = new TcpClient();
System.Net.Sockets (2)
System\Net\Sockets\TCPListener.cs (2)
206return new TcpClient(acceptedSocket); 240new TcpClient(await task.ConfigureAwait(false));
21 references to TcpClient
Microsoft.Extensions.Diagnostics.Probes (1)
TcpEndpointProbesService.cs (1)
87using var client = await _listener.AcceptTcpClientAsync(cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
TcpEndpointProbesServiceTests.cs (1)
102using TcpClient tcpClient = new TcpClient();
Microsoft.TestPlatform.CommunicationUtilities (6)
SocketClient.cs (1)
24private readonly TcpClient _tcpClient;
SocketCommunicationManager.cs (2)
39private TcpClient? _tcpClient; 121var client = await _tcpListener.AcceptTcpClientAsync();
SocketServer.cs (2)
28private TcpClient? _tcpClient; 93private void OnClientConnected(TcpClient client)
TcpClientExtensions.cs (1)
23this TcpClient client,
netstandard (1)
netstandard.cs (1)
1283[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.TcpClient))]
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
773[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.TcpClient))]
System.Net.Mail (1)
System\Net\Mail\SmtpConnection.cs (1)
31internal TcpClient? _tcpClient;
System.Net.Sockets (10)
System\Net\Sockets\NetworkStream.cs (4)
357/// If a <see cref="NetworkStream"/> was associated with a <see cref="TcpClient"/>, the <see cref="Close(int)"/> method 358/// will close the TCP connection, but not dispose of the associated <see cref="TcpClient"/>. 373/// If a <see cref="NetworkStream"/> was associated with a <see cref="TcpClient"/>, the <see cref="Close(int)"/> method 374/// will close the TCP connection, but not dispose of the associated <see cref="TcpClient"/>.
System\Net\Sockets\TCPListener.cs (6)
196public TcpClient AcceptTcpClient() 218public TcpClient EndAcceptTcpClient(IAsyncResult asyncResult) => 219EndAcceptCore<TcpClient>(asyncResult); 233public Task<TcpClient> AcceptTcpClientAsync() => AcceptTcpClientAsync(CancellationToken.None).AsTask(); 235public ValueTask<TcpClient> AcceptTcpClientAsync(CancellationToken cancellationToken) 239static async ValueTask<TcpClient> WaitAndWrap(ValueTask<Socket> task) =>