Skip to content

Commit d0471ee

Browse files
authored
refactor: Phase 1 — role-based strategy architecture with unified OSS (#353)
- Added AppType.OSSApp = 3 for OSS update mode - Created OSSUpdateStrategy (implements IStrategy), absorbs old OSSStrategy logic - Bootstrap now dispatches to OSS on AppType.OSSApp: client-side: download version config, compare, start upgrade process upgrade-side: read GlobalConfigInfoOSS from env, execute OSSUpdateStrategy - Removed legacy files: OSSStrategy.cs, GeneralUpdateOSS.cs, GeneralClientOSS.cs - OSS mode is now fully built-in — no separate entry classes needed Closes #352
1 parent 4708827 commit d0471ee

6 files changed

Lines changed: 132 additions & 290 deletions

File tree

src/c#/GeneralUpdate.Core/Bootstrap/GeneralClientOSS.cs

Lines changed: 0 additions & 102 deletions
This file was deleted.

src/c#/GeneralUpdate.Core/Bootstrap/GeneralUpdateBootstrap.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Diagnostics;
44
using System.IO;

src/c#/GeneralUpdate.Core/Bootstrap/GeneralUpdateOSS.cs

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/c#/GeneralUpdate.Core/Configuration/AppType.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,11 @@ public class AppType
1111
/// upgrade program.
1212
/// </summary>
1313
public const int UpgradeApp = 2;
14+
15+
/// <summary>
16+
/// OSS (Object Storage Service) update mode.
17+
/// Downloads packages from cloud storage without a dedicated update server.
18+
/// </summary>
19+
public const int OSSApp = 3;
1420
}
15-
}
21+
}

src/c#/GeneralUpdate.Core/Strategy/OSSStrategy.cs

Lines changed: 0 additions & 125 deletions
This file was deleted.

0 commit comments

Comments
 (0)