-
Notifications
You must be signed in to change notification settings - Fork 9.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
Remaining pubternal APIs in the shared framework #11312
Comments
For DataProtection, see #6975 (comment). It's the only context I have on that one. |
|
For auth, it looks like we only have one @Tratcher any opposition to just making this regular public? This class hasn't been touched since @natemcmaster added this 2 years ago when he introduced the cookie builder stuff. |
@pranavkm Why not move it out of the internal namespace? |
@blowdart besides "leave DataProtection alone", do you know if we can make this type internal now or make it properly public? There are 2 types: public class DataProtectionBuilder : IDataProtectionBuilder {
public DataProtectionBuilder(IServiceCollection services);
public IServiceCollection Services { get; }
} This could be public or internal. public interface IActivator {
object CreateInstance(Type expectedBaseType, string implementationTypeName);
} This should be internal. |
Why should it be internal? @GrabYourPitchforks can you remember why this was written in this way? |
@HaoK Yes, RequestPathBaseCookieBuilder can be public. |
For sanity sake, let there only be one breaking change announcement that we add a few comments to. |
It's a utility interface that's an internal implementation detail that doesn't need to be exposed to external users. We're doing mass clean up of pubternal types in ASP.NET Core 3.0, data protection is part of that clean up. |
Can we move the code gen helpers to a CompilerServices namespace? |
Not super sure I follow. Are you talking about |
No, the types in Razor.Internal, like RazorInject attribute and the other things you said are required for code generation. |
We decided to leave |
* Remove Hosting.Internal APIs #11312
We're making great progress on this! |
@Tratcher can you look at Microsoft.AspNetCore.Server.Kestrel.Https.Internal? |
@GrabYourPitchforks Do you have any feedback on making Microsoft.AspNetCore.DataProtection.Internal and Microsoft.AspNetCore.DataProtection.Cng.Internal actually internal? |
Spoke to @GrabYourPitchforks and he says make them internal! |
|
@NicolasDorier because we made a properly public version named EnableBuffering. |
Just another feedback: I was using Since Internal namespace is now internal, my code broke. I don't think it is a big deal really, as I can just copy/paste those classes directly in my project. It is quite corner case and does not require me too much maintenance. Just wanted to share feedback. |
@Tratcher @davidfowl Can RequestCookieCollection be public? If implementing a custom IRequestCookieCollection or IRequestCookieFeature, there's not much reason to reimplement this vs inherit or wrap it. I think you can get an instance of one anyway like this: |
@Samirat can you file a new issue for API requests like this? I'm going to close this as we've finished the work on removing pubternal APIs. Feel free to open new issues to discuss particular APIs. We can triage those as appropriate. |
We still have to look at packages but I haven't done that yet: I want to make sure these were intentional and not forgotten. If they were intentional I'd like to understand why they weren't made public APIs
The text was updated successfully, but these errors were encountered: