Repository navigation
SmtpClient SendMailAsync with CancellationToken API implementation - #287
Conversation
|
e513058#diff-e2b2d690217e90426b121345ba65abdcR377 is failing in CI as the test now actually checks that NTLM is used. Looks like it is essentially this: https://github.com/dotnet/corefx/issues/28961. Stack trace for reference: |
|
@stephentoub PTAL the use of |
b2c94d1 to
6076372
Compare
Use Interlocked.Exchange instead of locks
6076372 to
499a07e
Compare
|
/azp run runtime-libraries outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
The src changes LGTM. Thanks. |
davidsh
left a comment
There was a problem hiding this comment.
LGTM. You'll want to check the Outerloop CI results to verify the failures aren't related to the PR.
|
Outerloop failures are unrelated, Mail itself doesn't have any OL tests. |
In that case, you are free to 'Squash and merge' this unless you want additional feedback from others. |
|
Thanks for the reviews! |
…orageSize to GetClassConstructorContextSize (dotnet#287)
3f9f0e7 is the implementation of the API introduced in dotnet/corefx#24475
class System.Net.Mail.SmtpClient { public Task SendMailAsync(string from, string recipients, string subject, string body) + public Task SendMailAsync(string from, string recipients, string subject, string body, CancellationToken cancellationToken) public Task SendMailAsync(MailMessage message) + public Task SendMailAsync(MailMessage message, CancellationToken cancellationToken) }The rest of the PR are SmtpClient tests using a mock SmtpServer.
CC @dotnet/ncl