internal static Task <HashSet <string> > GetAzureCachedFiles(string container) { ObjectManager.AssertMainThread(); if (CachedFiles == null) { CachedFiles = new Dictionary <string, Task <HashSet <string> > >(); } var m = CachedFiles.TryGetValue(container); if (m == null) { m = AzureApi.GetAzureCachedFilesInternal(container); CachedFiles[container] = m; } return(m); }
public static WebFile FromUrl(Uri url, HttpResponseMessage partialResponse, bool continueDownload) { #if STANDALONE var existing = new WebFile(url); #else ObjectManager.AssertMainThread(); var existing = files[url.AbsoluteUri]; if (existing == null) { existing = new WebFile(url); files[url.AbsoluteUri] = existing; } #endif existing.SaveResponseInfo(partialResponse, continueDownload); return(existing); }