Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

[Design] Refactor DataProtection #136

Closed
wants to merge 2 commits into from
Closed

[Design] Refactor DataProtection #136

wants to merge 2 commits into from

Conversation

ajaybhargavb
Copy link
Contributor

Issue - #134

@rynowak @loudej @lodejard

Things that still need cleanup:

  1. DataProtectionServiceDescriptors
  2. CertificateXmlEncryptor
  3. EncryptedXmlDescriptor

/// A simplified default implementation of <see cref="IActivator"/> that understands
/// how to call ctors which take <see cref="ILoggerFactory"/>.
/// </summary>
private sealed class SimpleActivator : IActivator
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be removed. Needs some discussion on how to approach this scenario.

@ajaybhargavb ajaybhargavb force-pushed the refactor-dp branch 2 times, most recently from c83c35c to a87ca50 Compare April 7, 2016 18:18

namespace Microsoft.AspNetCore.DataProtection
{
public abstract class DataProtectionProvider : IDataProtectionProvider

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this type conflict with the one used by the extensions package?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess one of these will probably have to be renamed.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you plan to include this PR in RC2, maybe it would be better to address that now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. But this PR is still in design. I am planning to do all the documentation/test/renames in a later update.

@ajaybhargavb
Copy link
Contributor Author

🆙 📅

@@ -37,55 +37,8 @@ public static T CreateInstance<T>(this IActivator activator, string implementati
public static IActivator GetActivator(this IServiceProvider serviceProvider)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is strange as an extension method. Services are one of those things that you should know if it's null or not.

@ajaybhargavb
Copy link
Contributor Author

Closing this since the latest work is on a different branch

@natemcmaster natemcmaster deleted the refactor-dp branch August 25, 2017 17:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants