1 write to _connection
System.Net.Mail (1)
System\Net\Mail\SmtpConnection.cs (1)
404_connection = connection;
61 references to _connection
System.Net.Mail (61)
System\Net\Mail\SmtpConnection.cs (61)
423if (_connection._isConnected) 433IAsyncResult result = _connection.BeginInitializeConnection(_host, _port, InitializeConnectionCallback, this); 438_connection.EndInitializeConnection(result); 457thisPtr._connection.EndInitializeConnection(result); 471_connection._responseReader = new SmtpReplyReaderFactory(_connection._stream!); 473SmtpReplyReader reader = _connection.Reader!.GetNextReplyReader(); 539IAsyncResult result = EHelloCommand.BeginSend(_connection, _connection._client!._clientDomain, s_sendEHelloCallback, this); 542_connection._extensions = EHelloCommand.EndSend(result); 543_connection.ParseExtensions(_connection._extensions); 547if (_connection._stream is SslStream) 553if (_connection.EnableSsl) 555if (!_connection._serverSupportsStartTls) 558if (!(_connection._stream is SslStream)) 584thisPtr._connection._extensions = EHelloCommand.EndSend(result); 585thisPtr._connection.ParseExtensions(thisPtr._connection._extensions); 590if (thisPtr._connection._stream is SslStream) 612if (thisPtr._connection.EnableSsl) 614if (!thisPtr._connection._serverSupportsStartTls) 617if (!(thisPtr._connection._stream is SslStream)) 639IAsyncResult result = HelloCommand.BeginSend(_connection, _connection._client!._clientDomain, s_sendHelloCallback, this); 643_connection._supportedAuth = SupportedAuth.Login; 670IAsyncResult result = StartTlsCommand.BeginSend(_connection, SendStartTlsCallback, this); 700_connection._stream = new SslStream(_connection._stream!, false, ServicePointManager.ServerCertificateValidationCallback); 702IAsyncResult result = ((SslStream)_connection._stream).BeginAuthenticateAsClient( 704_connection._clientCertificates, 713((SslStream)_connection._stream).EndAuthenticateAsClient(result); 714_connection._responseReader = new SmtpReplyReaderFactory(_connection._stream); 728(thisPtr._connection._stream as SslStream)!.EndAuthenticateAsClient(result); 729thisPtr._connection._responseReader = new SmtpReplyReaderFactory(thisPtr._connection._stream); 743if (_connection._credentials != null) 745while (++_currentModule < _connection._authenticationModules.Length) 748ISmtpAuthenticationModule module = _connection._authenticationModules[_currentModule]; 749if (!_connection.AuthSupported(module)) 754NetworkCredential? credential = _connection._credentials.GetCredential(_host, _port, module.AuthenticationType); 757Authorization? auth = _connection.SetContextAndTryAuthenticate(module, credential, _outerResult); 761IAsyncResult result = AuthCommand.BeginSend(_connection, _connection._authenticationModules[_currentModule].AuthenticationType, auth.Message, s_authenticateCallback, this); 779module.CloseContext(_connection); 780_connection._isConnected = true; 787_connection._isConnected = true; 810thisPtr._connection._authenticationModules[thisPtr._currentModule].CloseContext(thisPtr._connection); 811thisPtr._connection._isConnected = true; 831Authorization? auth = _connection._authenticationModules[_currentModule].Authenticate(_authResponse, null, _connection, _connection._client!.TargetName, null); 837IAsyncResult result = AuthCommand.BeginSend(_connection, auth.Message, s_authenticateContinueCallback, this); 846_connection._authenticationModules[_currentModule].CloseContext(_connection); 847_connection._isConnected = true; 869thisPtr._connection._authenticationModules[thisPtr._currentModule].CloseContext(thisPtr._connection); 870thisPtr._connection._isConnected = true;