private async Task Recieve() { var result = await loadingService.WithExecuteAsync("Master download", async() => { using (var stream = await itemService.OpenItemAsync().ConfigureAwait(false)) { return(await networkClient.Download( EndPoint.MasterItem(settingService.GetEndPoint()), stream, Definition.DownloadTimeout)); } }); if (result.Success) { await dialogService.DisplayInformation("Master download", "Download completed."); await Back(); } else { await dialogService.DisplayNetworkError(result); await itemService.DeleteItem(); } }