-
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
Change IAsyncResult APIs in System.Net.Sockets to wrap Task APIs #43845
Comments
Tagging subscribers to this area: @dotnet/ncl |
@geoffkizer I'm not sure what do you mean by those work items. |
No, you're right, I don't think we actually need to refactor these. I probably didn't look closely at what they do when I added them to the list. |
…idate related tests (#47781) Contributes to #43845. Reimplements (Begin|End)(SendTo|ReceiveFrom|ReceiveMessageFrom) on top of the new Task-based variants, and deletes unused code. Moves all related argument validation tests from ArgumentValidationTests.cs to SendTo.cs, ReceiveFrom.cs and ReceiveMessageFrom.cs, and extends coverage.
Seems to be finished, closing. |
We should change all the old IAsyncResult APIs in System.Net.Sockets to simply wrap the equivalent Task APIs, as we do in general.
Unfortunately, some of the current Task APIs actually use these IAsyncResult APIs. There is planned work to change this.
Specifically, we should do this for the following Socket APIs:
And these UdpClient APIs:- [ ] [Begin/End]Send- [ ] [Begin/End]ReceiveEDIT (by @antonfirsov )
As per #43845 (comment), we don't need to do anything with UdpClient.
We need to fix Socket.Begin*** methods wrapping Task variants do not throw SocketExceptions synchronously #47905Update API docs: Remove SokcetException from Begin*** methods for 6.0 dotnet-api-docs#6658The text was updated successfully, but these errors were encountered: