1 write to _connection
System.Net.Mail (1)
System\Net\Mail\SmtpTransport.cs (1)
93
_connection
= new SmtpConnection(this, _client, _credentials, _authenticationModules);
18 references to _connection
System.Net.Mail (18)
System\Net\Mail\SmtpTransport.cs (18)
55
return
_connection
!= null &&
_connection
.IsConnected;
75
get { return
_connection
!= null &&
_connection
.ServerSupportsEai; }
96
_connection
.Abort();
101
if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this,
_connection
);
105
_connection
.EnableSsl = true;
106
_connection
.ClientCertificates = ClientCertificates;
109
return
_connection
.GetConnectionAsync<TIOAdapter>(host, port, cancellationToken);
118
await MailCommand.SendAsync<TIOAdapter>(
_connection
!, SmtpCommands.Mail, sender, allowUnicode, cancellationToken).ConfigureAwait(false);
124
string to = smtpAddress + (
_connection
!.DSNEnabled ? deliveryNotify : string.Empty);
125
(bool success, string? response) = await RecipientCommand.SendAsync<TIOAdapter>(
_connection
, to, cancellationToken).ConfigureAwait(false);
129
new SmtpFailedRecipientException(
_connection
.Reader!.StatusCode, smtpAddress, response));
142
await DataCommand.SendAsync<TIOAdapter>(
_connection
!, cancellationToken).ConfigureAwait(false);
143
return (new MailWriter(
_connection
!.GetClosableStream(), encodeForTransport: true), failedRecipientExceptions);
148
_connection
?.ReleaseConnection();
155
if (
_connection
!= null)
157
_connection
.Abort();