/// <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();
 }
 /// <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);
 }
示例#3
0
        public Task <HttpOperationResponse <PageCell> > PutWithHttpMessagesAsync(string locationId, string pageId, PageCell value, Dictionary <string, List <string> > customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            var uri = GetUri(locationId, pageId);

            return(PutWithHttpMessagesAsync(uri, value, customHeaders, cancellationToken));
        }