Skip to content
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

Support dynamic refresh #21

Merged
merged 51 commits into from
Jan 18, 2024
Merged

Support dynamic refresh #21

merged 51 commits into from
Jan 18, 2024

Conversation

Eskibear
Copy link
Member

@Eskibear Eskibear commented Oct 26, 2023

Design

New APIs:

interface AzureAppConfiguration {
  ...
  refresh(): Promise<void>; // api to trigger refresh
  onRefresh(listener: () => any, thisArg?: any): void; // success callback
}

interface AzureAppConfigurationOptions { 
    ... 
    refreshOptions?: RefreshOptions; 
}

interface RefreshOptions {
  enabled: boolean; // default to false
  refreshIntervalInMs?: number; // default to 10s
  watchedSettings?: WatchedSetting[]
}

interface WatchedSetting  { 
    key: string; 
    label?: string;
}

Refresh Behavior:
image

@Eskibear Eskibear marked this pull request as ready for review November 16, 2023 06:20
examples/README.md Outdated Show resolved Hide resolved
@avanigupta

This comment was marked as resolved.

@Eskibear Eskibear merged commit 277953d into main Jan 18, 2024
3 checks passed
@Eskibear Eskibear deleted the dynamic-refresh branch January 18, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants