Ejemplo n.º 1
0
 /// <param name='operations'>
 /// Reference to the Rg.ClientApp.IAlbums.
 /// </param>
 /// <param name='id'>
 /// Required.
 /// </param>
 /// <param name='modifyRequest'>
 /// Required.
 /// </param>
 /// <param name='cancellationToken'>
 /// Cancellation token.
 /// </param>
 public static async Task<object> PutByIdAndModifyrequestAsync(this IAlbums operations, int id, AlbumDefinition modifyRequest, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     Microsoft.Rest.HttpOperationResponse<object> result = await operations.PutByIdAndModifyrequestWithOperationResponseAsync(id, modifyRequest, cancellationToken).ConfigureAwait(false);
     return result.Body;
 }
Ejemplo n.º 2
0
 /// <param name='operations'>
 /// Reference to the Rg.ClientApp.IAlbums.
 /// </param>
 /// <param name='createRequest'>
 /// Required.
 /// </param>
 /// <param name='cancellationToken'>
 /// Cancellation token.
 /// </param>
 public static async Task<AlbumSummary> PostByCreaterequestAsync(this IAlbums operations, AlbumDefinition createRequest, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     Microsoft.Rest.HttpOperationResponse<Rg.ClientApp.Models.AlbumSummary> result = await operations.PostByCreaterequestWithOperationResponseAsync(createRequest, cancellationToken).ConfigureAwait(false);
     return result.Body;
 }
Ejemplo n.º 3
0
 /// <param name='operations'>
 /// Reference to the Rg.ClientApp.IAlbums.
 /// </param>
 /// <param name='id'>
 /// Required.
 /// </param>
 /// <param name='modifyRequest'>
 /// Required.
 /// </param>
 public static object PutByIdAndModifyrequest(this IAlbums operations, int id, AlbumDefinition modifyRequest)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IAlbums)s).PutByIdAndModifyrequestAsync(id, modifyRequest);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
Ejemplo n.º 4
0
 /// <param name='operations'>
 /// Reference to the Rg.ClientApp.IAlbums.
 /// </param>
 /// <param name='createRequest'>
 /// Required.
 /// </param>
 public static AlbumSummary PostByCreaterequest(this IAlbums operations, AlbumDefinition createRequest)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IAlbums)s).PostByCreaterequestAsync(createRequest);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }