public static string Pick(this IRandomFilePicker picker, string path, bool recursive = true)
 => picker.Pick(path, "*", true);
 public static string Pick(this IRandomFilePicker picker, string path, string searchPattern, bool recursive = true)
 => picker.Pick(path, searchPattern, recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly);
Beispiel #3
0
 public MemesCommands(IRandomFilePicker randomFilePicker, IOptionsSnapshot <MemesOptions> memesOptions, ILogger <CoinCheckCommands> log)
 {
     this._randomFile   = randomFilePicker;
     this._memesOptions = memesOptions.Value;
     this._log          = log;
 }