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