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