7 writes to NetworkStream
System (7)
net\System\Net\_Connection.cs (3)
1167NetworkStream = tlsStream; 3751conn.NetworkStream = new NetworkStream(connectStream.Connection.NetworkStream, true); 3829NetworkStream = new NetworkStream(connectStream.Connection.NetworkStream, true);
net\System\Net\_FtpControlStream.cs (1)
412NetworkStream = tlsStream;
net\System\Net\mail\smtpconnection.cs (3)
408pooledStream.NetworkStream = TlsStream; 931connection.pooledStream.NetworkStream = TlsStream; 955thisPtr.connection.pooledStream.NetworkStream = TlsStream;
45 references to NetworkStream
System (45)
net\System\Net\_Connection.cs (14)
1160NetworkStream, 1178NetworkStream.Close(); 2249else if (m_ResponseData.m_StatusCode == HttpStatusCode.Forbidden && NetworkStream is TlsStream) 3155if (!(e is WebException) && NetworkStream is TlsStream) 3158webExceptionStatus = ((TlsStream) NetworkStream).ExceptionStatus; 3254if (NetworkStream is TlsStream) { 3255errorStatus = ((TlsStream) NetworkStream).ExceptionStatus; 3365else if (NetworkStream is TlsStream) { 3366errorStatus = ((TlsStream)NetworkStream).ExceptionStatus; 3644GlobalLog.Enter("Connection#" + ValidationHelper.HashString(this) + "::Write(ScatterGatherBuffers) networkstream#" + ValidationHelper.HashString(NetworkStream)); 3751conn.NetworkStream = new NetworkStream(connectStream.Connection.NetworkStream, true); 3753connectStream.Connection.NetworkStream.ConvertToNotSocketOwner(); 3829NetworkStream = new NetworkStream(connectStream.Connection.NetworkStream, true); 3831connectStream.Connection.NetworkStream.ConvertToNotSocketOwner();
net\System\Net\_ConnectionGroup.cs (1)
486if (!currentConnection.IsInitalizing && !currentConnection.NetworkStream.Connected) {
net\System\Net\_ConnectStream.cs (5)
2307TlsStream tlsStream = m_Connection.NetworkStream as TlsStream; 2337NetworkStream networkStream = connection.NetworkStream; 2367NetworkStream networkStream = connection.NetworkStream; 2583NetworkStream networkStream = connection.NetworkStream; 2911NetworkStream networkStream = m_Connection.NetworkStream;
net\System\Net\_FtpControlStream.cs (1)
405NetworkStream,
net\System\Net\mail\smtpconnection.cs (14)
343responseReader = new SmtpReplyReaderFactory(pooledStream.NetworkStream); 392if (!(pooledStream.NetworkStream is TlsStream)) 400pooledStream.NetworkStream, 413responseReader = new SmtpReplyReaderFactory(pooledStream.NetworkStream); 560ClosableStream cs = new ClosableStream(pooledStream.NetworkStream, onCloseHandler); 703connection.responseReader = new SmtpReplyReaderFactory(connection.pooledStream.NetworkStream); 792if (connection.pooledStream.NetworkStream is TlsStream) 803if (!(connection.pooledStream.NetworkStream is TlsStream)) 837if (thisPtr.connection.pooledStream.NetworkStream is TlsStream) 862if (!(thisPtr.connection.pooledStream.NetworkStream is TlsStream)) 924connection.pooledStream.NetworkStream, 932connection.responseReader = new SmtpReplyReaderFactory(connection.pooledStream.NetworkStream); 949thisPtr.connection.pooledStream.NetworkStream, 956thisPtr.connection.responseReader = new SmtpReplyReaderFactory(thisPtr.connection.pooledStream.NetworkStream);
net\System\Net\mail\SmtpTransport.cs (1)
43if (this.NetworkStream.Connected) {
net\System\Net\WebSockets\WebSocketConnectionStream.cs (9)
39Contract.Assert(connectStream.Connection.NetworkStream != null, 48m_IsFastPathAllowed = m_ConnectStream.Connection.NetworkStream.GetType() == s_NetworkStreamType; 388thisPtr.m_ConnectStream.Connection.NetworkStream.InternalAbortSocket(); 488Contract.Assert(connection.NetworkStream != null, "'connection.NetworkStream' MUST NOT be NULL."); 493m_SupportsMultipleWrites = connection.NetworkStream.GetType().Assembly == s_NetworkStreamType.Assembly; 585Contract.Assert(m_InnerStream.NetworkStream != null, "'m_InnerStream.NetworkStream' MUST NOT be NULL."); 586returnValue = m_InnerStream.NetworkStream.InternalSocket; 613return connection.m_InnerStream.NetworkStream.BeginMultipleWrite(buffers, callback, asyncState); 624connection.m_InnerStream.NetworkStream.EndMultipleWrite(asyncResult);