Skip to main content

GeneralUpdate.ClientCore

Definition

Namespace: GeneralUpdate.ClientCore

Assembly: GeneralUpdate.ClientCore.dll

GeneralUpdate.ClientCore is one of the core components, offering a wide range of primary functionalities. Its essence is similar to Core, but it has a different role: ClientCore is used in the main program, where it assists in updates and upgrades and then closes the main program to launch the upgrade assistant.

public class GeneralClientBootstrap : AbstractBootstrap<GeneralClientBootstrap, IStrategy>

Example

GeneralClientBootstrap uses code examples [View]

Annotations

GeneralClientBootstrap provides the following capabilities.

Properties

PropertiesDescription
UpdateOptionEnum for update operation configuration settings
ConfiginfoClient-related parameter class (fields like AppType, AppName, AppSecretKey, etc.)

Methods

MethodDescription
LaunchTaskAsync()Task-based asynchronous update launch
LaunchAsync()Launch update
SetBlacklist()Set blacklist for update files; pass in if certain files should not be updated.
Option()Set update configuration.
Config()Configure update-related parameters, such as server URL and port, appSecretKey for client identification and product branching.
GetOption()Get update configuration.
SetCustomSkipOption()Allow users to decide whether to proceed with an update in non-mandatory update scenarios.
AddCustomOption()Add an asynchronous custom operation. In theory, any custom operation can be completed. It's recommended to register environment check methods to ensure dependencies and environment are intact after the update.
AddListenerMultiAllDownloadCompleted()Notification for the completion of all download tasks.
AddListenerMultiDownloadCompleted()Event for the completion of single or multiple update package downloads.
AddListenerMultiDownloadError()Listen for errors during each version download
AddListenerMultiDownloadStatistics()Notification for download speed, remaining download time, and current download version info.
AddListenerException()Notification for any issues during the entire update process.

🌴Packet

Property
MainUpdateUrl string Main update check API address.
AppType int 1:ClientApp 2:UpdateApp
UpdateUrl string Update check API address.
AppName string Name of the application to be launched.
MainAppName string Name of the main application to be launched.
Format string Update package file format (default is Zip).
IsUpgradeUpdate bool Indicates if the update is needed to upgrade the application.
IsMainUpdate bool Indicates if the main application needs an update.
UpdateLogUrl string URL for the update log webpage.
UpdateVersions List Version information that needs updating.
Encoding Encoding File operation encoding format.
DownloadTimeOut int Download timeout duration.
AppSecretKey string Application secret key, agreed upon with the server.
ClientVersion string Current client version.
LastVersion string Latest version.
InstallPath string Installation path (used for update file logic).
TempPath string Temporary storage path for downloaded files (used for update file logic).
ProcessBase64 string Configuration parameters for the upgrade terminal program.
Platform string Platform to which the current strategy belongs (Windows\Linux\Mac).
BlackFiles List Files in the blacklist will be skipped during updates.
BlackFormats File formats in the blacklist will be skipped during updates.
DriveEnabled bool Indicates if the driver upgrade feature is enabled.

🌴Configinfo

Certainly! Here's the translated content:

AttributeTypeNotes
UpdateUrlstringAPI address for update checks.
ReportUrlstringAPI address for reporting update status.
AppNamestringName of the application that needs to be launched.
MainAppNamestringName of the main application that needs to be launched.
UpdateLogUrlstringWeb address for the update log.
AppSecretKeystringApplication secret key, agreed upon with the server for authentication and branching.
ClientVersionstringCurrent version number of the client.
UpgradeClientVersionstringCurrent version number of the upgrade client.
InstallPathstringInstallation path (used for update file logic).
BlackFilesListFiles in the blacklist will be skipped during updates.
BlackFormatsListFile formats in the blacklist will be skipped during updates.
SkipDirectorysListDirectory paths to be skipped that do not require updates.
ProductIdstringUnique ID of the current product branch.
BowlstringPath to the Bowl monitoring process, which starts after updates to check if the Bowl client starts normally. If an exception occurs after starting, the exception information will be captured.
SchemestringUsed for passing a token in HTTP requests for authentication.
TokenstringToken used in HTTP requests for authentication.

🍵UpdateOption

Enum
Format File format of the update package.
Encoding Compression encoding.
DownloadTimeOut Timeout duration (in seconds). If not specified, the default timeout is 30 seconds.

Applicable To

ProductVersion
.NET5, 6, 7, 8, 9
.NET Framework4.6.1
.NET Standard2.0
.NET Core2.0