Skip to content

Batch 7: Extension points + configuration completion#374

Merged
JusterZhu merged 1 commit into
masterfrom
batch-7-extensions-config
May 24, 2026
Merged

Batch 7: Extension points + configuration completion#374
JusterZhu merged 1 commit into
masterfrom
batch-7-extensions-config

Conversation

@JusterZhu
Copy link
Copy Markdown
Collaborator

Summary

Adds missing extension point and configuration options.

Changes

AbstractBootstrap

  • Add DownloadOrchestrator\<T\>() extension point
  • Placeholder comments for ICleanStrategy/IDirtyStrategy (require cross-project reference to Differential)

UpdateOptions

  • Add DiffMode option (Serial default)

Build

  • dotnet build src/c#/GeneralUpdate.slnx — 0 errors

Closes #373

- Add DownloadOrchestrator<T>() extension point to AbstractBootstrap
- Add DiffMode option to UpdateOptions (Serial default)
- Note ICleanStrategy/IDirtyStrategy placeholders for cross-project ref

Closes #373
Copilot AI review requested due to automatic review settings May 24, 2026 10:39
@JusterZhu JusterZhu merged commit 023e27a into master May 24, 2026
1 check passed
@JusterZhu JusterZhu deleted the batch-7-extensions-config branch May 24, 2026 10:42
Copy link
Copy Markdown
Contributor

Copilot AI left a 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 completes a couple of planned configuration/extension “hooks” in GeneralUpdate.Core by adding a new bootstrap extension point for download orchestration and exposing a new DiffMode update option.

Changes:

  • Added UpdateOptions.DiffMode with a default of Serial.
  • Added AbstractBootstrap.DownloadOrchestrator<T>() extension point (plus placeholders for future strategy extension points).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/c#/GeneralUpdate.Core/Configuration/UpdateOptions.cs Adds the DiffMode configuration option constant.
src/c#/GeneralUpdate.Core/Configuration/AbstractBootstrap.cs Adds a download orchestrator registration extension point.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +85 to +86
public TBootstrap DownloadOrchestrator<T>() where T : Download.Abstractions.IDownloadOrchestrator, new()
{ _extensions[typeof(Download.Abstractions.IDownloadOrchestrator)] = typeof(T); return (TBootstrap)this; }
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.

Batch 7: Extension points completion + configuration simplification

2 participants