|
1 | | -// Copyright (c) Microsoft Corporation. |
2 | | -// Licensed under the MIT license. |
3 | | - |
4 | | -import { WatchedSetting } from "./WatchedSetting.js"; |
5 | | - |
6 | | -export const DEFAULT_REFRESH_INTERVAL_IN_MS = 30 * 1000; |
7 | | -export const MIN_REFRESH_INTERVAL_IN_MS = 1 * 1000; |
8 | | - |
9 | | -export interface RefreshOptions { |
10 | | - /** |
11 | | - * Specifies whether the provider should automatically refresh when the configuration is changed. |
12 | | - */ |
13 | | - enabled: boolean; |
14 | | - |
15 | | - /** |
16 | | - * Specifies the minimum time that must elapse before checking the server for any new changes. |
17 | | - * Default value is 30 seconds. Must be greater than 1 second. |
18 | | - * Any refresh operation triggered will not update the value for a key until after the interval. |
19 | | - */ |
20 | | - refreshIntervalInMs?: number; |
21 | | - |
22 | | - /** |
23 | | - * One or more configuration settings to be watched for changes on the server. |
24 | | - * Any modifications to watched settings will refresh all settings loaded by the configuration provider when refresh() is called. |
25 | | - * |
26 | | - * @remarks |
27 | | - * If no watched setting is specified, all configuration settings will be watched. |
28 | | - */ |
29 | | - watchedSettings?: WatchedSetting[]; |
30 | | -} |
31 | | - |
32 | | -export interface FeatureFlagRefreshOptions { |
33 | | - /** |
34 | | - * Specifies whether the provider should automatically refresh all feature flags if any feature flag changes. |
35 | | - */ |
36 | | - enabled: boolean; |
37 | | - |
38 | | - /** |
39 | | - * Specifies the minimum time that must elapse before checking the server for any new changes. |
40 | | - * Default value is 30 seconds. Must be greater than 1 second. |
41 | | - * Any refresh operation triggered will not update the value for a key until after the interval. |
42 | | - */ |
43 | | - refreshIntervalInMs?: number; |
44 | | -} |
| 1 | +// Copyright (c) Microsoft Corporation. |
| 2 | +// Licensed under the MIT license. |
| 3 | + |
| 4 | +import { WatchedSetting } from "../WatchedSetting.js"; |
| 5 | + |
| 6 | +export const DEFAULT_REFRESH_INTERVAL_IN_MS = 30 * 1000; |
| 7 | +export const MIN_REFRESH_INTERVAL_IN_MS = 1 * 1000; |
| 8 | + |
| 9 | +export interface RefreshOptions { |
| 10 | + /** |
| 11 | + * Specifies whether the provider should automatically refresh when the configuration is changed. |
| 12 | + */ |
| 13 | + enabled: boolean; |
| 14 | + |
| 15 | + /** |
| 16 | + * Specifies the minimum time that must elapse before checking the server for any new changes. |
| 17 | + * Default value is 30 seconds. Must be greater than 1 second. |
| 18 | + * Any refresh operation triggered will not update the value for a key until after the interval. |
| 19 | + */ |
| 20 | + refreshIntervalInMs?: number; |
| 21 | + |
| 22 | + /** |
| 23 | + * One or more configuration settings to be watched for changes on the server. |
| 24 | + * Any modifications to watched settings will refresh all settings loaded by the configuration provider when refresh() is called. |
| 25 | + * |
| 26 | + * @remarks |
| 27 | + * If no watched setting is specified, all configuration settings will be watched. |
| 28 | + */ |
| 29 | + watchedSettings?: WatchedSetting[]; |
| 30 | +} |
| 31 | + |
| 32 | +export interface FeatureFlagRefreshOptions { |
| 33 | + /** |
| 34 | + * Specifies whether the provider should automatically refresh all feature flags if any feature flag changes. |
| 35 | + */ |
| 36 | + enabled: boolean; |
| 37 | + |
| 38 | + /** |
| 39 | + * Specifies the minimum time that must elapse before checking the server for any new changes. |
| 40 | + * Default value is 30 seconds. Must be greater than 1 second. |
| 41 | + * Any refresh operation triggered will not update the value for a key until after the interval. |
| 42 | + */ |
| 43 | + refreshIntervalInMs?: number; |
| 44 | +} |
0 commit comments