2 writes to _connection
System.Net.Mail (2)
System\Net\Mail\SmtpTransport.cs (2)
98_connection = new SmtpConnection(this, _client, _credentials, _authenticationModules); 124_connection = new SmtpConnection(this, _client, _credentials, _authenticationModules);
24 references to _connection
System.Net.Mail (24)
System\Net\Mail\SmtpTransport.cs (24)
69return _connection != null && _connection.IsConnected; 89get { return _connection != null && _connection.ServerSupportsEai; } 101_connection.Abort(); 106if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, _connection); 110_connection.EnableSsl = true; 111_connection.ClientCertificates = ClientCertificates; 114_connection.GetConnection(host, port); 125if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, _connection); 128_connection.EnableSsl = true; 129_connection.ClientCertificates = ClientCertificates; 132result = _connection.BeginGetConnection(outerResult, callback, state, host, port); 155SendMailAsyncResult result = new SendMailAsyncResult(_connection!, sender, recipients, 156allowUnicode, _connection!.DSNEnabled ? deliveryNotify : null, 164_connection?.ReleaseConnection(); 171if (_connection != null) 173_connection.Abort(); 199MailCommand.Send(_connection!, SmtpCommands.Mail, sender, allowUnicode); 207string to = smtpAddress + (_connection!.DSNEnabled ? deliveryNotify : string.Empty); 208if (!RecipientCommand.Send(_connection, to, out response)) 211new SmtpFailedRecipientException(_connection.Reader!.StatusCode, smtpAddress, response)); 233DataCommand.Send(_connection!); 234return new MailWriter(_connection!.GetClosableStream(), encodeForTransport: true);