2 writes to connection
System (2)
net\System\Net\mail\SmtpTransport.cs (2)
201connection = new SmtpConnection(this, client, credentials, authenticationModules); 224connection = new SmtpConnection(this, client, credentials, authenticationModules);
27 references to connection
System (27)
net\System\Net\mail\SmtpTransport.cs (27)
123return connection != null && connection.IsConnected; 172get { return connection != null && connection.ServerSupportsEai; } 202connection.Timeout = timeout; 203if(Logging.On)Logging.Associate(Logging.Web, this, connection); 207connection.EnableSsl = true; 208connection.ClientCertificates = ClientCertificates; 210connection.GetConnection(servicePoint); 225connection.Timeout = timeout; 226if(Logging.On)Logging.Associate(Logging.Web, this, connection); 229connection.EnableSsl = true; 230connection.ClientCertificates = ClientCertificates; 233result = connection.BeginGetConnection(servicePoint, outerResult, callback, state); 247connection.EndGetConnection(result); 271SendMailAsyncResult result = new SendMailAsyncResult(connection, sender, recipients, 272allowUnicode, connection.DSNEnabled ? deliveryNotify : null, 280if(connection != null){ 281connection.ReleaseConnection(); 286if(connection != null){ 287connection.Abort(); 317MailCommand.Send(connection, SmtpCommands.Mail, sender, allowUnicode); 324string to = smtpAddress + (connection.DSNEnabled ? deliveryNotify : String.Empty); 325if (!RecipientCommand.Send(connection, to, out response)) { 327new SmtpFailedRecipientException(connection.Reader.StatusCode, smtpAddress, response)); 348DataCommand.Send(connection); 349return new MailWriter(connection.GetClosableStream());