@@ -28,13 +28,31 @@ public sealed class GeneralClientOSS
2828
2929### Example
3030
31+ | Description | Address |
32+ | --------------------------- | ------------------------------------------------------------ |
33+ | Address of code example | [Enter](https:// github.com/GeneralLibrary/GeneralUpdate-Samples/tree/main/src/OSS) |
34+ | Hashing algorithm (sha256) | [Enter](https:// github.com/GeneralLibrary/GeneralUpdate/blob/master/src/c%23/GeneralUpdate.Core/Pipeline/HashMiddleware.cs) |
35+ | Test script (oss_start.cmd) | [Enter](https:// github.com/GeneralLibrary/GeneralUpdate-Samples/tree/main/src) |
36+
3137#### OSS Process
3238
3339
3440
35411. Prepare the version.json configuration file and update files (update.zip) just like in previous packaging methods.
3642
37- 
43+ ```json
44+ [
45+ {
46+ "PacketName": "packet_20250102230201638_1.0.0.1",
47+ "Hash": "ad1a85a9169ca0083ab54ba390e085c56b9059efc3ca8aa1ec9ed857683cc4b1",
48+ "Version": "1.0.0.1",
49+ "Url": "http:// localhost:5000/packages/packet_20250102230201638_1.0.0.1.zip",
50+ "PubTime": "2025-01-02T23:48:21"
51+ }
52+ ]
53+ ```
54+
55+
3856
39572 . When the Client starts, it directly requests the OSS server or file server to download the version.json file.
4058
@@ -50,6 +68,8 @@ public sealed class GeneralClientOSS
5068
5169The following example defines methods, including the usage of GeneralClientOSS , GeneralUpdateOSS.
5270
71+ GeneralClientOSS :
72+
5373``` c#
5474using System .Text ;
5575using GeneralUpdate .ClientCore ;
@@ -67,7 +87,7 @@ var paramsOSS = new GlobalConfigInfoOSS
6787await GeneralClientOSS .Start (paramsOSS , " OSSUpgradeSample.exe" );
6888```
6989
70-
90+ GeneralUpdateOSS :
7191
7292```
7393using GeneralUpdate.Core;
@@ -92,67 +112,6 @@ catch (Exception ex)
92112
93113
94114
95- ### Annotation
96-
97- GeneralUpdateOSS provides the following capabilities.
98-
99- #### Properties
100-
101- | Properties | Description |
102- | ---------- | ------------------------------------ |
103- | ParamsOSS | OSS update configuration parameters. |
104-
105-
106-
107- #### Methods
108-
109- | Method | Description |
110- | ---------------------- | ----------------------------------------------------------- |
111- | Start() | Start the OSS update. |
112- | AddListenerException() | Listen for internal exception information of the component. |
113-
114-
115-
116- ### 🌴ParamsOSS
117-
118- ** Properties**
119-
120- ** Url** string: HTTP API server request address.
121-
122- ** AppName** string: Application name.
123-
124- ** CurrentVersion** string: Current version.
125-
126- ** VersionFileName** string: Version file name.
127-
128-
129-
130- ### 🌼Start()
131-
132- ** Method**
133-
134- Start the OSS update.
135-
136- ``` c#
137- public static async Task Start (ParamsOSS configParams , string upgradeAppName = " GeneralUpdate.Upgrade" );
138- ```
139-
140-
141-
142- ** Parameter Types**
143-
144- ParamsOSS: Update configuration parameters, detailed content can be found in this document under 🌴ParamsOSS.
145-
146-
147-
148- ** Parameters**
149-
150- ** parameter** ParamsOSS: Update configuration parameters for the Android platform.
151-
152- ** upgradeAppName** : Name of the application to be upgraded.
153-
154-
155-
156115### Applicable to
157116
158117| Product | Version |
0 commit comments