/// <param name='operations'> /// Reference to the Rg.ClientApp.IAlbums. /// </param> /// <param name='albumId'> /// Required. /// </param> /// <param name='createRequest'> /// Required. /// </param> /// <param name='cancellationToken'> /// Cancellation token. /// </param> public static async Task<object> PostImageByAlbumidAndCreaterequestAsync(this IAlbums operations, int albumId, AddImageToAlbum createRequest, CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Microsoft.Rest.HttpOperationResponse<object> result = await operations.PostImageByAlbumidAndCreaterequestWithOperationResponseAsync(albumId, createRequest, cancellationToken).ConfigureAwait(false); return result.Body; }
/// <param name='operations'> /// Reference to the Rg.ClientApp.IAlbums. /// </param> /// <param name='albumId'> /// Required. /// </param> /// <param name='createRequest'> /// Required. /// </param> public static object PostImageByAlbumidAndCreaterequest(this IAlbums operations, int albumId, AddImageToAlbum createRequest) { return Task.Factory.StartNew((object s) => { return ((IAlbums)s).PostImageByAlbumidAndCreaterequestAsync(albumId, createRequest); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }