1 write to _connection
System.Net.Mail (1)
System\Net\Mail\SmtpTransport.cs (1)
92_connection = new SmtpConnection(this, _client, _credentials, _authenticationModules);
16 references to _connection
System.Net.Mail (16)
System\Net\Mail\SmtpTransport.cs (16)
54return _connection != null && _connection.IsConnected; 74get { return _connection != null && _connection.ServerSupportsEai; } 95if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, _connection); 99_connection.EnableSsl = true; 100_connection.ClientCertificates = ClientCertificates; 103return _connection.GetConnectionAsync<TIOAdapter>(host, port, cancellationToken); 112await MailCommand.SendAsync<TIOAdapter>(_connection!, SmtpCommands.Mail, sender, allowUnicode, cancellationToken).ConfigureAwait(false); 118string to = smtpAddress + (_connection!.DSNEnabled ? deliveryNotify : string.Empty); 119(bool success, string? response) = await RecipientCommand.SendAsync<TIOAdapter>(_connection, to, cancellationToken).ConfigureAwait(false); 123new SmtpFailedRecipientException(_connection.Reader!.StatusCode, smtpAddress, response)); 136await DataCommand.SendAsync<TIOAdapter>(_connection!, cancellationToken).ConfigureAwait(false); 137return (new MailWriter(_connection!.GetClosableStream(), encodeForTransport: true), failedRecipientExceptions); 142_connection?.ReleaseConnection(); 149_connection?.Abort();