示例#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());
 }