-
Notifications
You must be signed in to change notification settings - Fork 9
Update Sync logic #856
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
Update Sync logic #856
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the synchronization logic to improve thread safety and initialization handling by replacing manual initialization tracking with a Lazy<Task<>> pattern for loading database table metadata.
Changes:
- Replaced manual initialization tracking (
_tablesWithDatesdictionary and_tablesWithDatesInitializedflag) with aLazy<Task<Dictionary<string, string>>>for thread-safe lazy initialization - Extracted table loading logic into a static method
LoadTablesWithDatesAsyncto support the new lazy initialization pattern - Moved the
_tablesToIgnorearray into the static method to avoid duplication
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PortfolioViewer/PortfolioViewer.ApiService/Services/SyncGrpcService.cs
Outdated
Show resolved
Hide resolved
PortfolioViewer/PortfolioViewer.ApiService/Services/SyncGrpcService.cs
Outdated
Show resolved
Hide resolved
…rvice.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Development container publishedInstall with: |
|
Development container publishedInstall with: |
1 similar comment
Development container publishedInstall with: |



No description provided.