Skip to content

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 draft October 26, 2023 07:45
@Eskibear Eskibear marked this pull request as ready for review November 16, 2023 06:20
@Eskibear Eskibear requested a review from avanigupta November 16, 2023 06:20
@avanigupta

This comment was marked as resolved.

@Eskibear Eskibear merged commit 277953d into main Jan 18, 2024
@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.

7 participants