Exemplo n.º 1
0
 private static void TableSaveCallBack(TableServiceContext context, IAsyncResult asyncResult)
 {
     try
     {
         var response = context.EndSaveChanges(asyncResult);
     }
     catch (Exception exc)
     {
         System.Diagnostics.Debug.WriteLine(exc.ToString());
     }
 }
Exemplo n.º 2
0
        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
        }
Exemplo n.º 3
0
 private async Task SaveChangesAsync(TableServiceContext context, SaveChangesOptions options)
 {
     await this.StorageRetryPolicy.ExecuteAsync(this.CreateTask(
                                                    async => context.BeginSaveChanges(options, async, null),
                                                    res => context.EndSaveChanges(res)));
 }