3 writes to pooledStream
System (3)
net\System\Net\mail\smtpconnection.cs (3)
338
this.
pooledStream
= pooledStream;
637
ConnectAndHandshakeAsyncResult.connection.
pooledStream
= pooledStream;
688
connection.
pooledStream
= pooledStream;
36 references to pooledStream
System (36)
net\System\Net\mail\smtpconnection.cs (36)
98
if (
pooledStream
!= null)
99
return ((SmtpPooledStream)
pooledStream
).dsnEnabled;
158
SmtpPooledStream smtpPooledStream = (SmtpPooledStream)
pooledStream
;
182
return
pooledStream
.UnsafeBeginWrite(bufferBuilder.GetBuffer(), 0, bufferBuilder.Length, callback, state);
187
pooledStream
.EndWrite(result);
193
pooledStream
.Write(bufferBuilder.GetBuffer(), 0, bufferBuilder.Length);
202
if (!isClosed &&
pooledStream
!= null) {
209
GlobalLog.Print("SmtpConnectiont#" + ValidationHelper.HashString(this) + "::Close Transport#" + ValidationHelper.HashString(parent) + "putting back pooledStream#" + ValidationHelper.HashString(
pooledStream
));
211
((SmtpPooledStream)
pooledStream
).previouslyUsed = true;
212
connectionPool.PutConnection(
pooledStream
,
pooledStream
.Owner, Timeout);
224
if (!isClosed &&
pooledStream
!= null){
226
GlobalLog.Print("SmtpConnectiont#" + ValidationHelper.HashString(this) + "::Close Transport#" + ValidationHelper.HashString(parent) + "closing and putting back pooledStream#" + ValidationHelper.HashString(
pooledStream
));
237
pooledStream
.Close(0);
238
connectionPool.PutConnection(
pooledStream
,
pooledStream
.Owner, Timeout, false);
274
((SmtpPooledStream)
pooledStream
).dsnEnabled = true;
280
((SmtpPooledStream)
pooledStream
).serverSupportsEai = true;
560
ClosableStream cs = new ClosableStream(
pooledStream
.NetworkStream, onCloseHandler);
703
connection.responseReader = new SmtpReplyReaderFactory(connection.
pooledStream
.NetworkStream);
709
connection.
pooledStream
.UpdateLifetime();
711
if (((SmtpPooledStream)connection.
pooledStream
).previouslyUsed == true) {
792
if (connection.
pooledStream
.NetworkStream is TlsStream)
803
if (!(connection.
pooledStream
.NetworkStream is TlsStream))
837
if (thisPtr.connection.
pooledStream
.NetworkStream is TlsStream)
862
if (!(thisPtr.connection.
pooledStream
.NetworkStream is TlsStream))
923
connection.
pooledStream
.ServicePoint.Host,
924
connection.
pooledStream
.NetworkStream,
928
connection.
pooledStream
.ServicePoint,
931
connection.
pooledStream
.NetworkStream = TlsStream;
932
connection.responseReader = new SmtpReplyReaderFactory(connection.
pooledStream
.NetworkStream);
948
thisPtr.connection.
pooledStream
.ServicePoint.Host,
949
thisPtr.connection.
pooledStream
.NetworkStream,
953
thisPtr.connection.
pooledStream
.ServicePoint,
955
thisPtr.connection.
pooledStream
.NetworkStream = TlsStream;
956
thisPtr.connection.responseReader = new SmtpReplyReaderFactory(thisPtr.connection.
pooledStream
.NetworkStream);