paulmortlock
paulmortlock
That does not make sense to me show me please if there is also a way to do this without using foreach as it is slow when 14K files are...
This is better but I have 87K files. var tasks = manager.Files .Where(files => !StartsWithStrings.Any(prefix => files.Path.StartsWith(prefix)) || !ContainsStrings.Any(prefix => files.Path.Contains(prefix))) .Select(async files => { await manager.SetFilePriorityAsync(files, Priority.DoNotDownload); n2--; });...