Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetConnection()

void System.Net.Mail.SmtpTransport.GetConnection ( string host,
int port )
inlinepackage

Definition at line 103 of file SmtpTransport.cs.

104 {
105 lock (this)
106 {
107 _connection = new SmtpConnection(this, _client, _credentials, _authenticationModules);
108 if (_shouldAbort)
109 {
111 }
112 _shouldAbort = false;
113 }
114 if (System.Net.NetEventSource.Log.IsEnabled())
115 {
116 System.Net.NetEventSource.Associate(this, _connection, "GetConnection");
117 }
118 if (EnableSsl)
119 {
120 _connection.EnableSsl = true;
121 _connection.ClientCertificates = ClientCertificates;
122 }
124 }
void GetConnection(string host, int port)
ICredentialsByHost _credentials
X509CertificateCollection ClientCertificates
readonly SmtpClient _client
readonly ISmtpAuthenticationModule[] _authenticationModules
static readonly System.Net.NetEventSource Log
static void Associate(object first, object second, [CallerMemberName] string memberName=null)

References System.Net.Mail.SmtpTransport._authenticationModules, System.Net.Mail.SmtpTransport._client, System.Net.Mail.SmtpTransport._connection, System.Net.Mail.SmtpTransport._credentials, System.Net.Mail.SmtpTransport._shouldAbort, System.Net.Mail.SmtpConnection.Abort(), System.Net.NetEventSource.Associate(), System.Net.Mail.SmtpTransport.ClientCertificates, System.Net.Mail.SmtpTransport.EnableSsl, System.Net.Mail.SmtpConnection.GetConnection(), and System.Net.NetEventSource.Log.

Referenced by System.Net.Mail.SmtpClient.GetConnection().