13 instantiations of TcpClient
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (2)
131using TcpClient client = new TcpClient(); 151using TcpClient client = new TcpClient();
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (2)
131using TcpClient client = new TcpClient(); 151using TcpClient client = new TcpClient();
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
TargetPickerUi.cs (1)
116var browserDebugClientConnect = new TcpClient();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
OpaqueUpgradeTests.cs (2)
329TcpClient client = new TcpClient(); 382TcpClient client = new TcpClient();
RequestBodyTests.cs (1)
313TcpClient client = new TcpClient();
ServerTests.cs (1)
659TcpClient client = new TcpClient();
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
TcpEndpointProbesServiceTests.cs (1)
102using TcpClient tcpClient = new TcpClient();
System.Net.Mail (1)
System\Net\Mail\SmtpConnection.cs (1)
46_tcpClient = new TcpClient();
System.Net.Sockets (2)
System\Net\Sockets\TCPListener.cs (2)
209return new TcpClient(acceptedSocket); 243new TcpClient(await task.ConfigureAwait(false));
34 references to TcpClient
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (2)
131using TcpClient client = new TcpClient(); 151using TcpClient client = new TcpClient();
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (2)
131using TcpClient client = new TcpClient(); 151using TcpClient client = new TcpClient();
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
TargetPickerUi.cs (2)
58static async Task<string> ReceiveMessageLoop(TcpClient browserDebugClientConnect, CancellationToken token) 116var browserDebugClientConnect = new TcpClient();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (13)
OpaqueUpgradeTests.cs (2)
329TcpClient client = new TcpClient(); 382TcpClient client = new TcpClient();
RequestBodyTests.cs (1)
313TcpClient client = new TcpClient();
ServerTests.cs (10)
296using (var client = await SendHungRequestAsync("GET", address)) 327using (var client = await SendHungRequestAsync("GET", address)) 364using (var client1 = await SendHungRequestAsync("GET", address)) 365using (var client2 = await SendHungRequestAsync("GET", address)) 367using (var client3 = await SendHungRequestAsync("GET", address)) 403using (var client1 = await SendHungRequestAsync("GET", address)) 404using (var client2 = await SendHungRequestAsync("GET", address)) 405using (var client3 = await SendHungRequestAsync("GET", address)) 655private async Task<TcpClient> SendHungRequestAsync(string method, string address) 659TcpClient client = new 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();
netstandard (1)
netstandard.cs (1)
1283[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.TcpClient))]
System (1)
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)
32internal 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)
199public TcpClient AcceptTcpClient() 221public TcpClient EndAcceptTcpClient(IAsyncResult asyncResult) => 222EndAcceptCore<TcpClient>(asyncResult); 236public Task<TcpClient> AcceptTcpClientAsync() => AcceptTcpClientAsync(CancellationToken.None).AsTask(); 238public ValueTask<TcpClient> AcceptTcpClientAsync(CancellationToken cancellationToken) 242static async ValueTask<TcpClient> WaitAndWrap(ValueTask<Socket> task) =>