Table of Contents

Class GitHubReleaseStrategy

Namespace
JD.AI.Core.Installation
Assembly
JD.AI.Core.dll

Downloads self-contained native binaries from GitHub Releases and replaces the running executable in-place.

public sealed class GitHubReleaseStrategy : IInstallStrategy
Inheritance
GitHubReleaseStrategy
Implements
Inherited Members

Constructors

GitHubReleaseStrategy(string, string)

public GitHubReleaseStrategy(string runtimeId, string currentExePath)

Parameters

runtimeId string
currentExePath string

Properties

Name

Human-readable name for this strategy (e.g. "dotnet tool", "GitHub release").

public string Name { get; }

Property Value

string

Methods

ApplyAsync(string?, CancellationToken)

Applies an update (or fresh install) to the specified version, or latest if null.

public Task<InstallResult> ApplyAsync(string? targetVersion = null, CancellationToken ct = default)

Parameters

targetVersion string
ct CancellationToken

Returns

Task<InstallResult>

GetLatestVersionAsync(CancellationToken)

Fetches the latest available version from the upstream source. Returns null on failure.

public Task<string?> GetLatestVersionAsync(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task<string>