Skip to content

refactor: append Async suffix to async Task methods#713

Merged
astar-development-jb merged 2 commits into
mainfrom
maint/general-clean-up
Jul 4, 2026
Merged

refactor: append Async suffix to async Task methods#713
astar-development-jb merged 2 commits into
mainfrom
maint/general-clean-up

Conversation

@jaybarden1

Copy link
Copy Markdown
Contributor

Summary

Append "Async" suffix to async Task/Task methods across Scrapper and OneDrive.Sync.Client apps. Follows .NET naming conventions.

Event handlers (async void) intentionally excluded per standard convention.

Methods Renamed (14 total)

Scrapper (12):

  • ImageSaveHelper: SaveImage → SaveImageAsync
  • SearchWorkflow: ProcessSearchCategoriesAsync (fixed double-Async), ProcessAllCategoryPages → ProcessAllCategoryPagesAsync
  • ImagePage: GetImageFromPage → GetImageFromPageAsync, ProcessTheImageTags → ProcessTheImageTagsAsync, GetTags → GetTagsAsync
  • SearchResultsPage/SearchResultsPageFunctional: GetPageHeader → GetPageHeaderAsync
  • SubscriptionsImagesListPage: GetImagePageLinks → GetImagePageLinksAsync, Clear → ClearAsync
  • TopWallpapersPage/TopWallpapersPageFunctional/TopWallpapersWorkflow/TopWallpapersWorkflowFunctional: GetImagePageLinks → GetImagePageLinksAsync

OneDrive.Sync.Client (2):

  • UploadService: GetUploadedDocumentId → GetUploadedDocumentIdAsync
  • SyncProgressTracker: RecordCompletion → RecordCompletionAsync

Test Coverage

All call sites updated (40+ references). Test method names unchanged per requirement. All 2329+ tests pass.

Build: clean ✓ | warnings: 0 | tests: all pass


🤖 Generated with Claude Code

Renamed 14 async Task methods across Scrapper and OneDrive.Sync.Client to follow .NET naming conventions. Event handlers (async void) are explicitly excluded as per C# standards.

Methods renamed:
- Scrapper: SaveImage → SaveImageAsync, ProcessSearchCategories → ProcessSearchCategoriesAsync, ProcessAllCategoryPages → ProcessAllCategoryPagesAsync, GetImageFromPage → GetImageFromPageAsync, ProcessTheImageTags → ProcessTheImageTagsAsync, GetTags → GetTagsAsync, GetPageHeader (x2) → GetPageHeaderAsync, GetImagePageLinks (x3) → GetImagePageLinksAsync, Clear → ClearAsync
- OneDrive.Sync.Client: GetUploadedDocumentId → GetUploadedDocumentIdAsync, RecordCompletion → RecordCompletionAsync

Updated all call sites and interface declarations. Test method names remain unchanged; only internal call sites updated.

- Build: clean + no-restore → zero errors, zero warnings
- Tests: all 2329+ tests pass
- No Avalonia bindings affected (no XAML references to these methods)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@jaybarden1 jaybarden1 requested a review from a team July 4, 2026 19:35
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

Test results

2 756 tests  ±0   2 755 ✅ ±0   1m 1s ⏱️ +2s
   13 suites ±0       1 💤 ±0 
   13 files   ±0       0 ❌ ±0 

Results for commit 92a812b. ± Comparison against base commit 0f792b0.

♻️ This comment has been updated with latest results.

@astar-development-jb astar-development-jb enabled auto-merge (squash) July 4, 2026 19:38
@astar-development-jb astar-development-jb merged commit c6f24cc into main Jul 4, 2026
7 checks passed
@astar-development-jb astar-development-jb deleted the maint/general-clean-up branch July 4, 2026 19:44
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.

2 participants