Table of Contents

Class UpdateChecker

Namespace
JD.AI.Daemon.Services
Assembly
JD.AI.Daemon.dll

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

config IOptions<UpdateConfig>
httpFactory IHttpClientFactory
logger ILogger<UpdateChecker>

Properties

CurrentVersion

Current running version of the daemon.

public Version CurrentVersion { get; }

Property Value

Version

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

ct CancellationToken

Returns

Task<AllToolsUpdatePlan>

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)

Parameters

ct CancellationToken

Returns

Task<UpdateInfo>