-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Clean up Pubternal Types in SignalR #11162
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
Conversation
I think |
The approval assumes |
I agree about the HubOptions. The |
It seems OK to use |
Seems unfortunate but it would be pretty funky to refactor. We could put a method in |
The ref assembly is the only way to review this change. |
I should have elaborated in the description. Just adding internals visible to doesn't doesn't quite solve the issue. It causes some ambiguous references to types like |
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.
We should also try to switch to the new <InternalsVisibleTo>
tag in .csproj's!
src/SignalR/common/Http.Connections/src/Internal/HttpConnectionContext.cs
Show resolved
Hide resolved
src/SignalR/server/Core/ref/Microsoft.AspNetCore.SignalR.Core.netcoreapp3.0.cs
Outdated
Show resolved
Hide resolved
669e6a4
to
6ebe8c9
Compare
Had to revert the change to use the |
This comment was made automatically. If there is a problem contact [email protected]. I've triaged the above build. I've created/commented on the following issue(s) |
Roslyn is able to use |
Ah okay, I'll try that out. Thanks! |
new HubContext<THub>(lifetimeManager), | ||
hubOptions, | ||
globalHubOptions, | ||
new Logger<DefaultHubDispatcher<THub>>(loggerFactory)); |
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.
Wow this is kinda gross 😄
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.
Should we also remove HubDispatcher
from DI now that it's no longer used in DI?
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.
I'll follow up with why ServerSentEventsMessageFormatter is public.
Going to follow this up with another clean up pr for |
Is there a new way to implement custom HubDispatcher and inject it? |
Issue: #10169
Some things to note
ServerSentEventsMessageFormatter
used in the Microbenchmark project but that causes a bunch of issuesHubOptionsSetup
andHubOptionsSetup<T>
is used inSignalRDependencyInjectionExtensions
so Ieft those as pubternal. Didn't want to use internals visible to in this case. Should this just be public?