async void dashDownloaderPlugin_ChunkRequested(object sender, ChunkRequestedEventArgs e) { int i = 0; var manifestUrl = manifestUri.OriginalString.ToCharArray(); var requestUrl = e.Source.OriginalString.ToCharArray(); while (manifestUrl[i] == requestUrl[i]) { i++; } await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => { if (RequestCollection.Count > 1000) { RequestCollection.RemoveAt(1000); } RequestCollection.Insert(0, e.Source.OriginalString.Substring(i)); }); }
async void dashDownloaderPlugin_ChunkRequested(object sender, ChunkRequestedEventArgs e) { int i = 0; var manifestUrl = manifestUri.OriginalString.ToCharArray(); var requestUrl = e.Source.OriginalString.ToCharArray(); while (manifestUrl[i] == requestUrl[i]) { i++; } await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => { if (RequestCollection.Count > 1000) RequestCollection.RemoveAt(1000); RequestCollection.Insert(0, e.Source.OriginalString.Substring(i)); }); }