4 writes to _stream
System.Net.Mail (4)
System\Net\Mail\SmtpConnection.cs (4)
85_stream = _tcpClient.GetStream(); 96_stream = _tcpClient.GetStream(); 245_stream = sslStream; 700_connection._stream = new SslStream(_connection._stream!, false, ServicePointManager.ServerCertificateValidationCallback);
20 references to _stream
System.Net.Mail (20)
System\Net\Mail\SmtpConnection.cs (20)
108return _stream!.BeginWrite(_bufferBuilder.GetBuffer(), 0, _bufferBuilder.Length, callback, state); 113_stream!.EndWrite(result); 119_stream!.Write(_bufferBuilder.GetBuffer(), 0, _bufferBuilder.Length); 153_stream?.Close(); 193_responseReader = new SmtpReplyReaderFactory(_stream!); 228if (!(_stream is SslStream)) 236SslStream sslStream = new SslStream(_stream!, false, ServicePointManager.ServerCertificateValidationCallback); 246_responseReader = new SmtpReplyReaderFactory(_stream); 373ClosableStream cs = new ClosableStream(_stream!, _onCloseHandler); 471_connection._responseReader = new SmtpReplyReaderFactory(_connection._stream!); 547if (_connection._stream is SslStream) 558if (!(_connection._stream is SslStream)) 590if (thisPtr._connection._stream is SslStream) 617if (!(thisPtr._connection._stream is SslStream)) 700_connection._stream = new SslStream(_connection._stream!, false, ServicePointManager.ServerCertificateValidationCallback); 702IAsyncResult result = ((SslStream)_connection._stream).BeginAuthenticateAsClient( 713((SslStream)_connection._stream).EndAuthenticateAsClient(result); 714_connection._responseReader = new SmtpReplyReaderFactory(_connection._stream); 728(thisPtr._connection._stream as SslStream)!.EndAuthenticateAsClient(result); 729thisPtr._connection._responseReader = new SmtpReplyReaderFactory(thisPtr._connection._stream);