Skip to content

Add BalanceRefresher service for periodic balance updates#540

Merged
StuartFerguson merged 2 commits intomainfrom
task/#515_todo_complete
Apr 16, 2026
Merged

Add BalanceRefresher service for periodic balance updates#540
StuartFerguson merged 2 commits intomainfrom
task/#515_todo_complete

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

Introduce BalanceRefresher to periodically refresh the merchant's balance every 30 seconds and update the application cache. Extend IApplicationCache to support merchant balance storage and retrieval. Update LoginPageViewModel to use IBalanceRefresher and start refreshing after login. Register BalanceRefresher as a singleton in DI. Remove one-time balance fetch on login in favor of periodic updates. Minor logging improvements in MerchantService.

closes #515

Introduce BalanceRefresher to periodically refresh the merchant's balance every 30 seconds and update the application cache. Extend IApplicationCache to support merchant balance storage and retrieval. Update LoginPageViewModel to use IBalanceRefresher and start refreshing after login. Register BalanceRefresher as a singleton in DI. Remove one-time balance fetch on login in favor of periodic updates. Minor logging improvements in MerchantService.
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Apr 16, 2026

Not up to standards ⛔

🔴 Issues 1 medium · 2 minor

Alerts:
⚠ 1 issue (≤ 0 issues of at least medium severity)

Results:
3 new issues

Category Results
BestPractice 1 medium
CodeStyle 2 minor

View in Codacy

🟢 Metrics 10 complexity · 0 duplication

Metric Results
Complexity 10
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@StuartFerguson StuartFerguson merged commit 6b3d608 into main Apr 16, 2026
9 of 10 checks passed
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.

[BestPractice] Complete the task associated to this 'TODO' comment.

1 participant