Concurrent protection scans per file (#52)

* Move to ConcurrentDictionary

* Convert to ConcurrentQueue
This commit is contained in:
Matt Nadareski
2021-07-18 09:44:23 -07:00
committed by GitHub
parent 3ac57b1c0c
commit 3667a5b57a
72 changed files with 303 additions and 199 deletions

View File

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using BurnOutSharp.Matching;
@@ -19,7 +20,7 @@ namespace BurnOutSharp.ProtectionType
}
/// <inheritdoc/>
public List<string> CheckDirectoryPath(string path, IEnumerable<string> files)
public ConcurrentQueue<string> CheckDirectoryPath(string path, IEnumerable<string> files)
{
// TODO: Verify if these are OR or AND
var matchers = new List<PathMatchSet>