-
Notifications
You must be signed in to change notification settings - Fork 36
Deprecate and rename refresh APIs for clarity #532
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
Conversation
src/Microsoft.Extensions.Configuration.AzureAppConfiguration/AzureAppConfigurationProvider.cs
Outdated
Show resolved
Hide resolved
...osoft.Extensions.Configuration.AzureAppConfiguration/FeatureManagement/FeatureFlagOptions.cs
Outdated
Show resolved
Hide resolved
...rosoft.Extensions.Configuration.AzureAppConfiguration/AzureAppConfigurationRefreshOptions.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Extensions.Configuration.AzureAppConfiguration/Constants/RefreshConstants.cs
Outdated
Show resolved
Hide resolved
...osoft.Extensions.Configuration.AzureAppConfiguration/FeatureManagement/FeatureFlagOptions.cs
Outdated
Show resolved
Hide resolved
...rosoft.Extensions.Configuration.AzureAppConfiguration/AzureAppConfigurationRefreshOptions.cs
Outdated
Show resolved
Hide resolved
@@ -27,7 +38,26 @@ public class FeatureFlagOptions | |||
/// <summary> | |||
/// The time after which the cached values of the feature flags expire. Must be greater than or equal to 1 second. | |||
/// </summary> | |||
public TimeSpan CacheExpirationInterval { get; set; } = RefreshConstants.DefaultFeatureFlagsCacheExpirationInterval; | |||
[Obsolete("The CacheExpirationInterval property will be deprecated in a future release. Please use the new `SetFeatureFlagRefreshInterval` method instead. " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method has been renamed to SetRefreshInterval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use nameof(SetRefreshInterval)
to avoid errors like this in future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
property will be deprecated in a future release
Probably just terminology, but it sounds like the API is still not deprecated. How do you like this?
... property is deprecated and will be removed in a future release...
54a4061
to
4fa92eb
Compare
See #350