From 91f9c6396de90919b532950e3b18d4e5fe16a51b Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Thu, 24 Jan 2019 15:35:12 -0800 Subject: [PATCH] Supress pubternal analyzer warnings for DataProtection (#6996) --- .../DataProtection/src/KeyManagement/XmlKeyManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/DataProtection/DataProtection/src/KeyManagement/XmlKeyManager.cs b/src/DataProtection/DataProtection/src/KeyManagement/XmlKeyManager.cs index 06baad13ed..736005ecf7 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/XmlKeyManager.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/XmlKeyManager.cs @@ -62,7 +62,9 @@ namespace Microsoft.AspNetCore.DataProtection.KeyManagement /// /// The instance that provides the configuration. /// The . +#pragma warning disable PUB0001 // Pubternal type IActivator in public API public XmlKeyManager(IOptions keyManagementOptions, IActivator activator) +#pragma warning restore PUB0001 // Pubternal type IActivator in public API : this(keyManagementOptions, activator, NullLoggerFactory.Instance) { } @@ -72,7 +74,9 @@ namespace Microsoft.AspNetCore.DataProtection.KeyManagement /// The instance that provides the configuration. /// The . /// The . +#pragma warning disable PUB0001 // Pubternal type IActivator in public API public XmlKeyManager(IOptions keyManagementOptions, IActivator activator, ILoggerFactory loggerFactory) +#pragma warning restore PUB0001 // Pubternal type IActivator in public API : this(keyManagementOptions, activator, loggerFactory, DefaultKeyStorageDirectories.Instance) { }