-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Why System.Net.Sockets
has dependency to System.Security.Principal.Windows
?
#1383
Comments
@dehghani-mehdi, why did you open a new issue here? https://github.com/dotnet/corefx/issues/42592 had been tracking your previous same question, and it was answered there. You also replied to that one saying it could be closed (though your response appears to have been deleted). |
Because it's not and that was not a question, it's a bug (maybe I should change the title to something like
Yes, because you closed the issue. |
Maybe it was a misunderstanding. @StephenBonikowsky asked "do we need to keep this issue open?" and you responded "I don't think so". But maybe you were answering a different question.
I closed the issue because you commented that the issue needn't be kept open. It sounds like we had a miscommunication.
What's the bug? Are you saying that something is breaking at runtime? Or you just don't want this extra .dll deployed as part of your app? @vcsjones outlined nicely in https://github.com/dotnet/corefx/issues/42592#issuecomment-553989245 why this dependency is there. |
I meant the question and the issue was not answered solved. but that comment. for the record, the comment was: 'I don't think so'
Yes, it seems like we had. sorry I didn't explain well.
No, everything works great
Yes, I am developer too, it is clear (at least to me) memory cache has nothing to do with |
I don't believe this is a System.Runtime.Caching bug at this point. The cache package relies on ConfigurationManager, and that is expected. The issue that remains is that System.Security.Principal.Windows does not get linked away as expected, because of System.Net.Sockets? https://github.com/dotnet/corefx/issues/42592#issuecomment-555680784 |
System.Runtime.Caching
has dependency to System.Security.Principal.Windows
?System.Net.Sockets
has dependency to System.Security.Principal.Windows
?
Updating title to match my reading of that comment. |
@danmosemsft What area label should be applied to this issue? |
The reason that System.Net.Sockets has a dependency on System.Security.Principal.Windows is because the old APM-style async methods are implemented using ContextAwareResult, which supports flowing identity and thus requires System.Security.Principal.Windows. The System.Net.Sockets code isn't actually using ContextAwareResult to flow identity, as far as I can see. So it's never used in practice. Longer-term, we should reimplement the old APM style async stuff on top of the new Task based methods; this will eliminate the dependency on ContextAwareResult and should provide a bunch of other benefits too, like improving perf. Short-term, we could look at refactoring the existing dependency. I'm not sure why the Sockets code uses ContextAwareResult here instead of LazyAsyncResult, but there's presumably a good reason for it. |
Why
System.Runtime.Caching
has dependency toSystem.Security.Principal.Windows
?Okay, the comment should be
Why
System.Net.Sockets
has dependency toSystem.Security.Principal.Windows
?to match new title.
The text was updated successfully, but these errors were encountered: