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

◆ SendDataCompleted()

static void System.Net.Mail.SendMailAsyncResult.SendDataCompleted ( IAsyncResult result)
inlinestaticprivate

Definition at line 152 of file SendMailAsyncResult.cs.

153 {
154 if (result.CompletedSynchronously)
155 {
156 return;
157 }
159 try
160 {
161 DataCommand.EndSend(result);
162 sendMailAsyncResult._stream = sendMailAsyncResult._connection.GetClosableStream();
163 if (sendMailAsyncResult._failedRecipientExceptions.Count > 1)
164 {
165 sendMailAsyncResult.InvokeCallback(new SmtpFailedRecipientsException(sendMailAsyncResult._failedRecipientExceptions, sendMailAsyncResult._failedRecipientExceptions.Count == sendMailAsyncResult._toCollection.Count));
166 }
167 else if (sendMailAsyncResult._failedRecipientExceptions.Count == 1)
168 {
169 sendMailAsyncResult.InvokeCallback(sendMailAsyncResult._failedRecipientExceptions[0]);
170 }
171 else
172 {
173 sendMailAsyncResult.InvokeCallback();
174 }
175 }
176 catch (Exception result2)
177 {
178 sendMailAsyncResult.InvokeCallback(result2);
179 }
180 }
SendMailAsyncResult(SmtpConnection connection, MailAddress from, MailAddressCollection toCollection, bool allowUnicode, string deliveryNotify, AsyncCallback callback, object state)

References System.Net.Mail.SendMailAsyncResult.SendMailAsyncResult(), System.IAsyncResult.AsyncState, System.IAsyncResult.CompletedSynchronously, System.Collections.Generic.Dictionary< TKey, TValue >.Count, and System.Net.Mail.DataCommand.EndSend().