Skip to content

Add IConfigurationRefresher.TryRefresh API #113

Description

@zhenlan

To make it easier for customers to trigger configuration refresh without worrying about crashing the app due to various transient errors, propose to add the API below in IConfigurationRefresher.

Task<bool> TryRefresh()

Details
The TryRefresh will not throw on Transient or any FailedRequestException, regardless of the status code (even 401, 403)

The existing API Refresh will not catch anything.

More discussion
Propose to follow the convention and rename APIs to

Task RefreshAsync();
Task<bool> TryRefreshAsync();

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions