1 write to _connection
System.Net.Mail (1)
System\Net\Mail\SmtpTransport.cs (1)
124
_connection
= new SmtpConnection(this, _client, _credentials, _authenticationModules);
18 references to _connection
System.Net.Mail (18)
System\Net\Mail\SmtpTransport.cs (18)
63
return
_connection
!= null &&
_connection
.IsConnected && !_stale;
97
get { return
_connection
!= null &&
_connection
.ServerSupportsEai; }
121
_connection
?.Abort();
127
_connection
.Abort();
132
if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this,
_connection
);
138
_connection
.SslOptions = sslOptions;
141
return
_connection
.GetConnectionAsync<TIOAdapter>(host, port, cancellationToken);
150
await MailCommand.SendAsync<TIOAdapter>(
_connection
!, SmtpCommands.Mail, sender, allowUnicode, cancellationToken).ConfigureAwait(false);
156
string to = smtpAddress + (
_connection
!.DSNEnabled ? deliveryNotify : string.Empty);
157
(bool success, string? response) = await RecipientCommand.SendAsync<TIOAdapter>(
_connection
, to, cancellationToken).ConfigureAwait(false);
161
new SmtpFailedRecipientException(
_connection
.Reader!.StatusCode, smtpAddress, response));
174
await DataCommand.SendAsync<TIOAdapter>(
_connection
!, cancellationToken).ConfigureAwait(false);
175
return (new MailWriter(
_connection
!.GetClosableStream(), encodeForTransport: true), failedRecipientExceptions);
180
_connection
?.ReleaseConnection();
196
if (
_connection
!= null)
198
_connection
.Abort();