Added uri refresh to step 2.
This commit is contained in:
parent
d73701c939
commit
05426eb618
1 changed files with 3 additions and 0 deletions
|
|
@ -142,6 +142,9 @@ namespace AaxDecrypter
|
||||||
if (File.Exists(jsonDownloadState))
|
if (File.Exists(jsonDownloadState))
|
||||||
{
|
{
|
||||||
nfsPersister = new NetworkFileStreamPersister(jsonDownloadState);
|
nfsPersister = new NetworkFileStreamPersister(jsonDownloadState);
|
||||||
|
//If More thaan ~1 hour has elapsed since getting the download url, it will expire.
|
||||||
|
//The new url will be to the same file.
|
||||||
|
nfsPersister.NetworkFileStream.SetUriForSameFile(new Uri(downloadLicense.DownloadUrl));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue