-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
|
src/libraries/System.Net.Mail/tests/Functional/SmtpClientTest.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Mail/src/System/Net/Mail/SmtpClient.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Mail/src/System/Net/Mail/SmtpClient.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Mail/src/System/Net/Mail/SmtpClient.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Mail/tests/Functional/MockSmtpServer.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Mail/tests/Functional/MockSmtpServer.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Mail/tests/Functional/SmtpClientTest.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Mail/tests/Functional/SmtpClientTest.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Mail/tests/Functional/SmtpClientTest.cs
Outdated
Show resolved
Hide resolved
@stephentoub PTAL the use of |
b2c94d1
to
6076372
Compare
src/libraries/System.Net.Mail/src/System/Net/Mail/SmtpClient.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Mail/tests/Functional/FakeSmtpServer.cs
Outdated
Show resolved
Hide resolved
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
The rest of the PR are SmtpClient tests using a mock SmtpServer.
CC @dotnet/ncl