From 7e2735355f4760a7bc18d2174ba1618a8cff416d Mon Sep 17 00:00:00 2001 From: Ross Grambo Date: Mon, 15 May 2023 12:54:57 -0700 Subject: [PATCH] Changes the interface to be private and adds an assemblyinfo file that exposes it to the tests project. Also now signs the test project. --- src/Microsoft.FeatureManagement/AssemblyInfo.cs | 12 ++++++++++++ .../IFeatureDefinitionProviderCacheable.cs | 11 +++++++---- .../Tests.FeatureManagement.csproj | 2 ++ 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 src/Microsoft.FeatureManagement/AssemblyInfo.cs diff --git a/src/Microsoft.FeatureManagement/AssemblyInfo.cs b/src/Microsoft.FeatureManagement/AssemblyInfo.cs new file mode 100644 index 00000000..955518ef --- /dev/null +++ b/src/Microsoft.FeatureManagement/AssemblyInfo.cs @@ -0,0 +1,12 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +// +using System.Runtime.CompilerServices; + +// Tests +[assembly: InternalsVisibleTo("Tests.FeatureManagement,PublicKey=" + +"0024000004800000940000000602000000240000525341310004000001000100895524f60b44ff" + +"3ae70fbea5662f61dd9d640de2205b7bd5359a43dda006e51d83d1f5f7a7d3f849267a0a28676d" + +"cf49727a32487d4c75c4aacd5febb0069e1adc66ec63bbd18ec2276091a0e3c1326aa626c9e4db" + +"800714a134f2a81e405f35752b55220021923429cb61776cd2fa66d25c335f8dc27bb92292905a" + +"3798d896")] \ No newline at end of file diff --git a/src/Microsoft.FeatureManagement/IFeatureDefinitionProviderCacheable.cs b/src/Microsoft.FeatureManagement/IFeatureDefinitionProviderCacheable.cs index 973ec079..60087ecc 100644 --- a/src/Microsoft.FeatureManagement/IFeatureDefinitionProviderCacheable.cs +++ b/src/Microsoft.FeatureManagement/IFeatureDefinitionProviderCacheable.cs @@ -1,10 +1,13 @@ -using System; -using System.Collections.Generic; -using System.Text; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +// namespace Microsoft.FeatureManagement { - public interface IFeatureDefinitionProviderCacheable + /// + /// An interface that marks this provider's parameters are cacheable. + /// + internal interface IFeatureDefinitionProviderCacheable { } } diff --git a/tests/Tests.FeatureManagement/Tests.FeatureManagement.csproj b/tests/Tests.FeatureManagement/Tests.FeatureManagement.csproj index 1b96ebd8..7501c259 100644 --- a/tests/Tests.FeatureManagement/Tests.FeatureManagement.csproj +++ b/tests/Tests.FeatureManagement/Tests.FeatureManagement.csproj @@ -4,6 +4,8 @@ netcoreapp2.1;netcoreapp3.1;net5.0;net6.0 false 8.0 + True + ..\..\build\Microsoft.FeatureManagement.snk