in WindowsSmartInk/Microsoft.MTC.SmartInk/PackageManager.cs [266:293]
private async Task HandleDownloadAsync(DownloadOperation download, bool start)
{
try
{
Progress<DownloadOperation> progressCallback = new Progress<DownloadOperation>(DownloadProgress);
if (start)
{
ModelDownloadStarted?.Invoke(this, null);
await download.StartAsync().AsTask(_cts.Token, progressCallback);
}
else
{
await download.AttachAsync().AsTask(_cts.Token, progressCallback);
}
var response = download.GetResponseInformation();
}
catch (TaskCanceledException ex)
{
}
catch (Exception ex)
{
ModelDownloadError?.Invoke(this, null);
}
}