Exemple #1
0
 public static Task <ICollection <PackageResult> > ListPackagesAsync(this GetChocolatey chocolatey)
 {
     return(Task.Run(() => (ICollection <PackageResult>)chocolatey.List <PackageResult>().ToList()));
 }
Exemple #2
0
 public static Task <ICollection <T> > ListAsync <T>(this GetChocolatey chocolatey)
 {
     return(Task.Run(() => (ICollection <T>)chocolatey.List <T>().ToList()));
 }