Skip to content

Instantly share code, notes, and snippets.

@deurell
Created August 28, 2014 15:55
Show Gist options
  • Select an option

  • Save deurell/e58729c0df945b73df74 to your computer and use it in GitHub Desktop.

Select an option

Save deurell/e58729c0df945b73df74 to your computer and use it in GitHub Desktop.
public static IReadOnlyCollection<TItem> GetAllItems<TItem>(this IViewStorageReader viewStorage, string keyForListOfKeys, Logger logger, string typeOfItems, uint batchSize = 200)
where TItem : class
{
return GetAllItems<TItem, IEnumerable<string>>(viewStorage, keyForListOfKeys, logger, l => l.ToList(), typeOfItems, batchSize: batchSize);
}
@deurell
Copy link
Author

deurell commented Aug 28, 2014

Found this today. This is what made me quit .net.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment