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