示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="plugs"></param>
 /// <param name="path"></param>
 /// <param name="searchOption"></param>
 /// <param name="predicate"></param>
 public static void AddFolder(this PlugInSourceList plugs, string path, System.IO.SearchOption searchOption, Func <string, bool> predicate)
 {
     plugs.Add(new FolderPlugInSource(path, searchOption)
     {
         Filter = predicate
     });
 }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="plugs"></param>
 /// <param name="path"></param>
 /// <param name="searchOption"></param>
 public static void AddFolder(this PlugInSourceList plugs, string path, System.IO.SearchOption searchOption)
 {
     plugs.Add(new FolderPlugInSource(path, searchOption));
 }
示例#3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="plugs"></param>
 /// <param name="filePaths"></param>
 public static void AddFile(this PlugInSourceList plugs, params string[] filePaths)
 {
     plugs.Add(new FilePlugInSource(filePaths));
 }
示例#4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="plugs"></param>
 /// <param name="moduleType"></param>
 public static void AddType(this PlugInSourceList plugs, params Type[] moduleType)
 {
     plugs.Add(new TypePlugInSource(moduleType));
 }
示例#5
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="TModule"></typeparam>
 /// <param name="plugs"></param>
 public static void AddType <TModule>(this PlugInSourceList plugs) where TModule : IScorpioModule
 {
     plugs.AddType(typeof(TModule));
 }
示例#6
0
 public FilePlugInSource(PlugInSourceList plugInSourceLists, string[] filePaths)
 {
     _plugInSourceLists = plugInSourceLists;
     _filePaths         = filePaths;
 }
示例#7
0
 public FolderPlugInSource(PlugInSourceList plugInSourceLists, string path)
 {
     _plugInSourceLists = plugInSourceLists;
     _path = path;
 }