private async Task DownloadAndWriteToDisk() { Log("Downloading latest file from server ..."); var b64 = await _client.GetContentB64(_fileKey); if (b64.IsBlank()) { Log($"Something went wrong at {nameof(DownloadAndWriteToDisk)}!"); } Log("Writing downloaded file to disk ..."); DecodeB64ToDisk(b64); if (_fileKey == CheckerRelease.FileKey) { _listnr.Disconnect(); CurrentExe.RelaunchApp(); } }
protected override async Task OnWindowCloseAsync() { StartBeingBusy("Disconnecting client ..."); _client.Disconnect(); await Task.Delay(1000); }