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