Exemplo n.º 1
0
 /// <summary>
 /// Post a single asset
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='client'>
 /// The name of the client account.
 /// </param>
 /// <param name='id'>
 /// The Id of the asset
 /// </param>
 /// <param name='asset'>
 /// The Asset to insert/update. contained in the httppost body
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <string> PostAssetAsync(this IAssets operations, string client, string id, Asset asset, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PostAssetWithHttpMessagesAsync(client, id, asset, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }