Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/c#/GeneralUpdate.Core/Configuration/AbstractBootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ protected T GetOption<T>(UpdateOption<T>? option)
public TBootstrap UpdateAuth<T>() where T : Security.IHttpAuthProvider, new()
{ _extensions[typeof(Security.IHttpAuthProvider)] = typeof(T); return (TBootstrap)this; }

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

// ICleanStrategy / IDirtyStrategy extension points are in GeneralUpdate.Differential.
// Add via external extension methods once the project reference is established.

public TBootstrap ConfigureBlackList(BlackListConfig config)
{
_instances[typeof(BlackListConfig)] = config ?? BlackListConfig.Empty;
Expand Down
3 changes: 3 additions & 0 deletions src/c#/GeneralUpdate.Core/Configuration/UpdateOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public static class UpdateOptions
// ═══ Core ═══
public static UpdateOption<int> AppType { get; } = UpdateOption.ValueOf<int>("APPTYPE", Configuration.AppType.ClientApp);

// ═══ Diff mode ═══
public static UpdateOption<DiffMode> DiffMode { get; } = UpdateOption.ValueOf<DiffMode>("DIFFMODE", Configuration.DiffMode.Serial);

// ═══ Backward-compatible options ═══
public static UpdateOption<Encoding> Encoding { get; } = UpdateOption.ValueOf<Encoding>("COMPRESSENCODING", System.Text.Encoding.UTF8);
public static UpdateOption<string> Format { get; } = UpdateOption.ValueOf<string>("COMPRESSFORMAT", "ZIP");
Expand Down