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