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