public async Task DownloadVideoToFileAsync() { try { var storageFile = await _filePickerDialogService.ShowMp4FileSaveDialogAsync(BlobName); if (storageFile != null) { _mainViewModel.StartLoading($"Downloading your video {BlobName}"); using (var streamToWrite = await storageFile.OpenStreamForWriteAsync()) { await _coffeeVideoStorage.DownloadVideoAsync(_cloudBlockBlob, streamToWrite); } } } catch (Exception ex) { await _messageDialogService.ShowInfoDialogAsync(ex.Message, "Error"); } finally { _mainViewModel.StopLoading(); } }