-
Notifications
You must be signed in to change notification settings - Fork 778
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
Remove duplicated WebEncoders
class
#93
Comments
I believe we discussed doing option (1), right? |
Yup, Then I went back and saw going that way was unlike the other .Sources code in Common. So I wanted to triple-check and see if anyone else wanted to weigh in. |
I think it's the only option that makes sense, so I don't think there's any other reasonable way to go, no? We don't want a façade, and we don't want a public class for this... |
Suggest this is cleanup we can postpone 'til 1.0.1. We aren't planning to make a change in what's publicly exposed here. |
/cc @Eilon @danroth27 |
Moved. |
- part of #93 - copy `WebEncoders` into Common repo - add hacks to work around dotnet/cli#3831 and NuGet/Home#3118
- part of dotnet/extensions#93 - use `WebEncoders` from Common repo Also let VS have its way w/ test `.xproj` files
- part of dotnet/extensions#93 - use `WebEncoders` from Common repo - leave some of `WebEncodersTests` to ensure resources are brought in correctly
- part of #93 - copy `WebEncoders` into Common repo - add hacks to work around dotnet/cli#3831 and NuGet/Home#3118
A big chunk of
Microsoft.AspNetCore.WebUtilities.WebEncoders
(for base64url-encoding and -decoding) is duplicated inMicrosoft.AspNetCore.DataProtection.WebEncoders
. With aspnet/HttpAbstractions#563, these classes are getting less aligned and DataProtection can't take advantage of the expanded API.After a few offline discussions, have two ways to remove this wart:
WebEncoders
from HttpAbstractions to Common#if
the code such that it is placed inMicrosoft.AspNetCore.DataProtection.Internal
orMicrosoft.AspNetCore.WebUtilities
, depending on a flag.internal
and leave it inMicrosoft.AspNetCore.DataProtection
if anyone feels strongly.public
class in HttpAbstractions.ActivatorUtilities
and placeWebEncoders
as aninternal
class inMicrosoft.Extensions.Internal
then expose it through a facade in HttpAbstractions. That avoids the oddity of apublic
class in aBlah.Blah.Blah.Sources
package and makes the moved class more consistent w/ others in Common. But it involves more ceremony.The text was updated successfully, but these errors were encountered: