1 write to _connection
System.Net.Mail (1)
System\Net\Mail\SmtpTransport.cs (1)
92
_connection
= new SmtpConnection(this, _client, _credentials, _authenticationModules);
16 references to _connection
System.Net.Mail (16)
System\Net\Mail\SmtpTransport.cs (16)
54
return
_connection
!= null &&
_connection
.IsConnected;
74
get { return
_connection
!= null &&
_connection
.ServerSupportsEai; }
95
if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this,
_connection
);
99
_connection
.EnableSsl = true;
100
_connection
.ClientCertificates = ClientCertificates;
103
return
_connection
.GetConnectionAsync<TIOAdapter>(host, port, cancellationToken);
112
await MailCommand.SendAsync<TIOAdapter>(
_connection
!, SmtpCommands.Mail, sender, allowUnicode, cancellationToken).ConfigureAwait(false);
118
string to = smtpAddress + (
_connection
!.DSNEnabled ? deliveryNotify : string.Empty);
119
(bool success, string? response) = await RecipientCommand.SendAsync<TIOAdapter>(
_connection
, to, cancellationToken).ConfigureAwait(false);
123
new SmtpFailedRecipientException(
_connection
.Reader!.StatusCode, smtpAddress, response));
136
await DataCommand.SendAsync<TIOAdapter>(
_connection
!, cancellationToken).ConfigureAwait(false);
137
return (new MailWriter(
_connection
!.GetClosableStream(), encodeForTransport: true), failedRecipientExceptions);
142
_connection
?.ReleaseConnection();
149
_connection
?.Abort();