Class UpdateChecker
Checks the NuGet feed for newer versions of the daemon package.
public sealed class UpdateChecker
- Inheritance
-
UpdateChecker
- Inherited Members
Constructors
UpdateChecker(IOptions<UpdateConfig>, IHttpClientFactory, ILogger<UpdateChecker>)
public UpdateChecker(IOptions<UpdateConfig> config, IHttpClientFactory httpFactory, ILogger<UpdateChecker> logger)
Parameters
configIOptions<UpdateConfig>httpFactoryIHttpClientFactoryloggerILogger<UpdateChecker>
Properties
CurrentVersion
Current running version of the daemon.
public Version CurrentVersion { get; }
Property Value
Methods
CheckAllToolsAsync(CancellationToken)
Checks all installed JD.AI tools for updates using JDAIToolkit and returns a structured plan.
public Task<AllToolsUpdatePlan> CheckAllToolsAsync(CancellationToken ct = default)
Parameters
Returns
CheckForUpdateAsync(CancellationToken)
Checks NuGet for the latest version and returns it, or null if already up-to-date.
public Task<UpdateInfo?> CheckForUpdateAsync(CancellationToken ct = default)