1 write to _connection
System.Net.Mail (1)
System\Net\Mail\SmtpTransport.cs (1)
113
_connection
= new SmtpConnection(this, _client, _credentials, _authenticationModules);
19 references to _connection
System.Net.Mail (19)
System\Net\Mail\SmtpTransport.cs (19)
62
return
_connection
!= null &&
_connection
.IsConnected && !_stale;
86
get { return
_connection
!= null &&
_connection
.ServerSupportsEai; }
110
_connection
?.Abort();
116
_connection
.Abort();
121
if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this,
_connection
);
125
_connection
.EnableSsl = true;
126
_connection
.ClientCertificates = ClientCertificates;
129
return
_connection
.GetConnectionAsync<TIOAdapter>(host, port, cancellationToken);
138
await MailCommand.SendAsync<TIOAdapter>(
_connection
!, SmtpCommands.Mail, sender, allowUnicode, cancellationToken).ConfigureAwait(false);
144
string to = smtpAddress + (
_connection
!.DSNEnabled ? deliveryNotify : string.Empty);
145
(bool success, string? response) = await RecipientCommand.SendAsync<TIOAdapter>(
_connection
, to, cancellationToken).ConfigureAwait(false);
149
new SmtpFailedRecipientException(
_connection
.Reader!.StatusCode, smtpAddress, response));
162
await DataCommand.SendAsync<TIOAdapter>(
_connection
!, cancellationToken).ConfigureAwait(false);
163
return (new MailWriter(
_connection
!.GetClosableStream(), encodeForTransport: true), failedRecipientExceptions);
168
_connection
?.ReleaseConnection();
184
if (
_connection
!= null)
186
_connection
.Abort();