Fix readme code example

This commit is contained in:
Caelan Sayler
2021-08-30 12:14:53 +01:00
parent 27a0c9f33c
commit df894eca11

View File

@@ -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();
}
}
```
---