Skip to content
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

pass Span through Windows PAL #32008

Merged
merged 4 commits into from
Feb 11, 2020
Merged

pass Span through Windows PAL #32008

merged 4 commits into from
Feb 11, 2020

Conversation

wfurt
Copy link
Member

@wfurt wfurt commented Feb 10, 2020

This is a fragment of deprecated #1949.
With #453, we start using Span inside of SslStream.
However, it was not easy to pass it all the way to native calls using ArraySegment.
Also Windows.PAL is the only platform using ArraySegment.

This is not functional change.
The sole purpose is the ability to pass Span from SslStream and make all three PAL implementations more consistent.
Since Span is ref struct, we need ref struct wrapper to pass it through the layers.
There will be more change to SslStream itself but this PR raves out changes to Windows PAL.

@wfurt wfurt added enhancement Product code improvement that does NOT require public API changes/additions area-System.Net.Security labels Feb 10, 2020
@wfurt wfurt self-assigned this Feb 10, 2020
@wfurt wfurt requested review from stephentoub and a team February 10, 2020 03:32
@wfurt wfurt merged commit 25c092a into dotnet:master Feb 11, 2020
@wfurt wfurt deleted the spanPAL branch February 11, 2020 00:20
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Security enhancement Product code improvement that does NOT require public API changes/additions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants