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)
69
return
_connection
!= null &&
_connection
.IsConnected;
89
get { return
_connection
!= null &&
_connection
.ServerSupportsEai; }
101
_connection
.Abort();
106
if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this,
_connection
);
110
_connection
.EnableSsl = true;
111
_connection
.ClientCertificates = ClientCertificates;
114
_connection
.GetConnection(host, port);
125
if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this,
_connection
);
128
_connection
.EnableSsl = true;
129
_connection
.ClientCertificates = ClientCertificates;
132
result =
_connection
.BeginGetConnection(outerResult, callback, state, host, port);
155
SendMailAsyncResult result = new SendMailAsyncResult(
_connection
!, sender, recipients,
156
allowUnicode,
_connection
!.DSNEnabled ? deliveryNotify : null,
164
_connection
?.ReleaseConnection();
171
if (
_connection
!= null)
173
_connection
.Abort();
199
MailCommand.Send(
_connection
!, SmtpCommands.Mail, sender, allowUnicode);
207
string to = smtpAddress + (
_connection
!.DSNEnabled ? deliveryNotify : string.Empty);
208
if (!RecipientCommand.Send(
_connection
, to, out response))
211
new SmtpFailedRecipientException(
_connection
.Reader!.StatusCode, smtpAddress, response));
233
DataCommand.Send(
_connection
!);
234
return new MailWriter(
_connection
!.GetClosableStream(), encodeForTransport: true);