1 write to _transport
System.Net.Mail (1)
System\Net\Mail\SmtpClient.cs (1)
100
_transport
= new SmtpTransport(this);
20 references to _transport
System.Net.Mail (20)
System\Net\Mail\SmtpClient.cs (20)
95
[MemberNotNull(nameof(
_transport
))]
101
if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this,
_transport
);
224
return
_transport
.Credentials;
240
_transport
.Credentials = _useDefaultCredentials ? CredentialCache.DefaultNetworkCredentials : _customCredentials;
323
return
_transport
.EnableSsl;
327
_transport
.EnableSsl = value;
338
return
_transport
.ClientCertificates;
352
return
_transport
.ServerSupportsEai;
462
_transport
.IdentityRequired = false; // everything completes on the same thread.
495
writer =
_transport
.SendMail(message.Sender ?? message.From, recipients,
604
_transport
.IdentityRequired = Credentials != null && (ReferenceEquals(Credentials, CredentialCache.DefaultNetworkCredentials) || (cache = Credentials as CredentialCache) == null || IsSystemNetworkCredentialInCache(cache));
634
_operationCompletedResult = new ContextAwareResult(
_transport
.IdentityRequired, true, null, this, s_contextSafeCompleteCallback);
637
if (
_transport
.IsConnected)
650
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Calling BeginConnect. Transport: {
_transport
}");
651
_transport
.BeginGetConnection(_operationCompletedResult, ConnectCallback, _operationCompletedResult, Host!, Port);
967
_transport
.BeginSendMail(_message!.Sender ?? _message.From!, _recipients!,
990
if (!
_transport
.IsConnected)
992
_transport
.GetConnection(_host!, _port);
996
private void Abort() =>
_transport
.Abort();
1015
_transport
?.ReleaseConnection();