Skip to content

Commit 2e98ff5

Browse files
committed
rename GeneralExtensionHost
1 parent 3516fbd commit 2e98ff5

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/c#/GeneralUpdate.Ext/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ static async Task Main(string[] args)
99
{
1010
var installPath = @"C:\data\install";
1111
var downloadPath = @"C:\data\download";
12-
var host = new ExtensionHost(new Version("1.0.0"), installPath, downloadPath);
12+
var host = new GeneralExtensionHost(new Version("1.0.0"), installPath, downloadPath);
1313
host.InstallationCompleted += (_, _) =>
1414
{
1515
Console.WriteLine("Installation completed");

src/c#/GeneralUpdate.Extension/Examples/ExtensionSystemExample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void Initialize()
2626
var currentPlatform = DetectCurrentPlatform();
2727

2828
// Create the extension host
29-
_host = new ExtensionHost(
29+
_host = new GeneralExtensionHost(
3030
hostVersion,
3131
installPath,
3232
downloadPath,

src/c#/GeneralUpdate.Extension/ExtensionHost.cs renamed to src/c#/GeneralUpdate.Extension/GeneralExtensionHost.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace GeneralUpdate.Extension
99
/// Main orchestrator for the extension system.
1010
/// Coordinates extension discovery, compatibility validation, updates, and lifecycle management.
1111
/// </summary>
12-
public class ExtensionHost : IExtensionHost
12+
public class GeneralExtensionHost : IExtensionHost
1313
{
1414
private readonly Version _hostVersion;
1515
private readonly Metadata.TargetPlatform _targetPlatform;
@@ -79,15 +79,15 @@ public bool GlobalAutoUpdateEnabled
7979
#endregion
8080

8181
/// <summary>
82-
/// Initializes a new instance of the <see cref="ExtensionHost"/> class.
82+
/// Initializes a new instance of the <see cref="GeneralExtensionHost"/> class.
8383
/// </summary>
8484
/// <param name="hostVersion">The current host application version.</param>
8585
/// <param name="installBasePath">Base directory for extension installations.</param>
8686
/// <param name="downloadPath">Directory for downloading extension packages.</param>
8787
/// <param name="targetPlatform">The current platform (Windows/Linux/macOS).</param>
8888
/// <param name="downloadTimeout">Download timeout in seconds (default: 300).</param>
8989
/// <exception cref="ArgumentNullException">Thrown when required parameters are null.</exception>
90-
public ExtensionHost(
90+
public GeneralExtensionHost(
9191
Version hostVersion,
9292
string installBasePath,
9393
string downloadPath,

0 commit comments

Comments
 (0)