Table of Contents

Class UpdatePrompter

Namespace
JD.AI
Assembly
JD.AI.dll

Renders update notifications and handles the interactive update flow.

public static class UpdatePrompter
Inheritance
UpdatePrompter
Inherited Members

Methods

FormatNotification(UpdateInfo)

Non-interactive notification (used after background check completes). Returns the formatted message for display.

public static string FormatNotification(UpdateInfo info)

Parameters

info UpdateInfo

Returns

string

PromptAsync(UpdateInfo, CancellationToken)

Shows an update notification and optionally runs the update. Returns true if the user updated and should restart.

[ExcludeFromCodeCoverage]
public static Task<bool> PromptAsync(UpdateInfo info, CancellationToken ct = default)

Parameters

info UpdateInfo
ct CancellationToken

Returns

Task<bool>