public static Task <IEnumerable <T> > ExecuteAsync <T>(this DataServiceQuery <T> query) { var queryTask = new APMTask <IEnumerable <T> >(query.BeginExecute, query.EndExecute); #if false return(queryTask); #else return(GetUnexpectedInternalClientErrorWrappedTask(Protocol.Constants.TableWorkaroundTimeout, queryTask)); #endif }
public static Task <DataServiceResponse> SaveChangesAsync(this TableServiceContext context, SaveChangesOptions options) { var task = new APMTask <DataServiceResponse>( (callback, state) => context.BeginSaveChanges(options, callback, state), (asyncResult) => context.EndSaveChanges(asyncResult)); #if false return(task); #else return(GetUnexpectedInternalClientErrorWrappedTask(Protocol.Constants.TableWorkaroundTimeout, task)); #endif }