Exemplo n.º 1
0
 /// <summary>
 /// Saves or updates an asset template
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='client'>
 /// The name of the client account
 /// </param>
 /// <param name='template'>
 /// The template object to be persisted
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AssetTemplate> PostAssetTemplateAsync(this IAssets operations, string client, AssetTemplate template, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PostAssetTemplateWithHttpMessagesAsync(client, template, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }