17 references to Connection
System.Net.HttpListener (17)
System\Net\Managed\ChunkedInputStream.cs (1)
147_context.Connection.SendError(e.Message, 400);
System\Net\Managed\HttpEndPointListener.cs (1)
163context.Connection.Prefix = prefix;
System\Net\Managed\HttpListener.Managed.cs (2)
225all[i].Connection.Close(true); 242ctxs[i].Connection.Close(true);
System\Net\Managed\HttpListenerRequest.Managed.cs (9)
186_context.Connection.SendError(null, 501); 196_context.Connection.SendError(null, 411); 203HttpResponseStream output = _context.Connection.GetResponseStream(); 288private X509Certificate2? GetClientCertificateCore() => ClientCertificate = _context.Connection.ClientCertificate; 292HttpConnection cnc = _context.Connection; 325_inputStream = _context.Connection.GetRequestStream(_isChunked, _contentLength); 336public bool IsSecureConnection => _context.Connection.IsSecure; 338public IPEndPoint? LocalEndPoint => _context.Connection.LocalEndPoint; 340public IPEndPoint? RemoteEndPoint => _context.Connection.RemoteEndPoint;
System\Net\Managed\HttpListenerResponse.Managed.cs (3)
55_responseStream ??= _httpContext!.Connection.GetResponseStream(); 109_httpContext!.Connection.Close(force); 242int reuses = _httpContext!.Connection.Reuses;
System\Net\Managed\WebSockets\HttpWebSocket.Managed.cs (1)
59WebSocket webSocket = WebSocket.CreateFromStream(context.Connection.ConnectedStream, isServer: true, subProtocol, keepAliveInterval);