mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Fix readme code example
This commit is contained in:
@@ -76,6 +76,8 @@ Windows apps should be as fast and as easy to install and update as apps like Go
|
||||
|
||||
7. Update your app periodically with UpdateManager.
|
||||
```cs
|
||||
private static void UpdateMyApp()
|
||||
{
|
||||
using var mgr = new UpdateManager("https://the.place/you-host/updates");
|
||||
var newVersion = await mgr.UpdateApp();
|
||||
|
||||
@@ -83,6 +85,7 @@ Windows apps should be as fast and as easy to install and update as apps like Go
|
||||
if (newVersion != null) {
|
||||
UpdateManager.RestartApp();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user