/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this ICellOperations operations, string locationId, string pageId, short row, short column, CancellationToken cancellationToken = default(CancellationToken)) { await operations.DeleteWithHttpMessagesAsync(locationId, pageId, row, column, null, cancellationToken).ConfigureAwait(false); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='value'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PutAsync(this ICellOperations operations, string locationId, string pageId, PageCell value, CancellationToken cancellationToken = default(CancellationToken)) { await operations.PutWithHttpMessagesAsync(locationId, pageId, value, null, cancellationToken).ConfigureAwait(false); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> public static void Delete(this ICellOperations operations, string locationId, string pageId, short row, short column) { Task.Factory.StartNew(s => ((ICellOperations)s).DeleteAsync(locationId, pageId, row, column), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='value'> /// </param> public static void Put(this ICellOperations operations, string locationId, string pageId, PageCell value) { Task.Factory.StartNew(s => ((ICellOperations)s).PutAsync(locationId, pageId, value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }