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
9 changes: 7 additions & 2 deletions src/c#/GeneralUpdate.Core/Configuration/AbstractBootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,13 @@ protected T GetOption<T>(UpdateOption<T>? option)
public TBootstrap DownloadOrchestrator<T>() where T : Download.Abstractions.IDownloadOrchestrator, new()
{ _extensions[typeof(Download.Abstractions.IDownloadOrchestrator)] = typeof(T); return (TBootstrap)this; }

// ICleanStrategy / IDirtyStrategy extension points are in GeneralUpdate.Differential.
// Add via external extension methods once the project reference is established.
/// <summary>Register a custom clean strategy by type name (interface lives in GeneralUpdate.Differential).</summary>
public TBootstrap CleanStrategy<T>() where T : class, new()
{ _extensions[typeof(T)] = typeof(T); return (TBootstrap)this; }

/// <summary>Register a custom dirty strategy by type name (interface lives in GeneralUpdate.Differential).</summary>
Comment on lines +88 to +92
public TBootstrap DirtyStrategy<T>() where T : class, new()
{ _extensions[typeof(T)] = typeof(T); return (TBootstrap)this; }
Comment on lines +88 to +94

public TBootstrap ConfigureBlackList(BlackListConfig config)
{
Expand Down
3 changes: 2 additions & 1 deletion src/c#/GeneralUpdate.Core/GeneralUpdate.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
</ItemGroup>

<ItemGroup>
<!-- DrivelutionMiddleware: requires net10.0 target + Drivelution reference -->
<!-- DrivelutionMiddleware: available for users who add GeneralUpdate.Drivelution reference.
Restore by: 1) Add <ProjectReference> to Drivelution, 2) Remove this Compile Remove -->
Comment on lines +37 to +38
<Compile Remove="Pipeline\DrivelutionMiddleware.cs" />
<!-- IsExternalInit is built-in for net8.0+ (C# 9 records) -->
<Compile Remove="Configuration\IsExternalInit.cs" Condition="'$(TargetFramework)' != 'netstandard2.0'" />
Expand Down
3 changes: 1 addition & 2 deletions src/c#/GeneralUpdate.Core/Strategy/LinuxStrategy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ protected override PipelineBuilder BuildPipeline(PipelineContext context)
.UseMiddlewareIf<PatchMiddleware>(_configinfo.PatchEnabled)
.UseMiddleware<CompressMiddleware>()
.UseMiddleware<HashMiddleware>();
// DrivelutionMiddleware requires GeneralUpdate.Drivelution project reference;
// uncomment when the reference is added for net10.0 target.
// DrivelutionMiddleware: add GeneralUpdate.Drivelution project reference to enable
return builder;
}

Expand Down
3 changes: 1 addition & 2 deletions src/c#/GeneralUpdate.Core/Strategy/WindowsStrategy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ protected override PipelineBuilder BuildPipeline(PipelineContext context)
.UseMiddlewareIf<PatchMiddleware>(_configinfo.PatchEnabled)
.UseMiddleware<CompressMiddleware>()
.UseMiddleware<HashMiddleware>();
// DrivelutionMiddleware requires GeneralUpdate.Drivelution project reference;
// uncomment when the reference is added for net10.0 target.
// DrivelutionMiddleware: add GeneralUpdate.Drivelution project reference to enable
return builder;
}

Expand Down