Esempio n. 1
0
 public static IEnumerable <TableBatchInformation <T> > ToBatchInformations <T>(this IEnumerable <IEnumerable <EntityKey> > batches, EntityKeyBatchInformationConverter <T> converter)
     where T : ITableEntity
 {
     return(converter(batches));
 }
Esempio n. 2
0
      public static async Task<IEnumerable<T>> ExecuteBatchAsync<T>(this CloudTable table, IEnumerable<EntityKey> keys, EntityKeyBatchInformationConverter<T> batchInformationConverter, EventHub eventHub)
         where T : ITableEntity
      {
         var executions = await keys            
            .ToBatches()
            .ToBatchInformations(batchInformationConverter)
            .ExecuteAsync<T>(table, eventHub);

         var results = executions
            .Where(e => e != null)
            .ToList();

         return results;
      }