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)
108
return
_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
!);
228
if (!(
_stream
is SslStream))
236
SslStream sslStream = new SslStream(
_stream
!, false, ServicePointManager.ServerCertificateValidationCallback);
246
_responseReader = new SmtpReplyReaderFactory(
_stream
);
373
ClosableStream cs = new ClosableStream(
_stream
!, _onCloseHandler);
471
_connection._responseReader = new SmtpReplyReaderFactory(_connection.
_stream
!);
547
if (_connection.
_stream
is SslStream)
558
if (!(_connection.
_stream
is SslStream))
590
if (thisPtr._connection.
_stream
is SslStream)
617
if (!(thisPtr._connection.
_stream
is SslStream))
700
_connection._stream = new SslStream(_connection.
_stream
!, false, ServicePointManager.ServerCertificateValidationCallback);
702
IAsyncResult 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);
729
thisPtr._connection._responseReader = new SmtpReplyReaderFactory(thisPtr._connection.
_stream
);