예제 #1
0
        public void RegisterServices([NotNull] Container container)
        {
            // ReSharper disable once ConditionIsAlwaysTrueOrFalse
            // ReSharper disable once HeuristicUnreachableCode
            if (container == null)
            {
                return;
            }

            if (Everything64Api.IsInstalled())
            {
                container.Collection.Append(typeof(ISearchProviderFactory), typeof(EverythingFileSearchFactory));
            }
        }
예제 #2
0
 public string[] FindFilesIncludingSubdirectories(string rootPath, string mask)
 {
     return(Everything64Api.Search($"\"{rootPath}\" {mask}").ToArray());
 }