コード例 #1
0
 /// <summary>
 /// Patch a HealthBot.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Bot resource group in the user subscription.
 /// </param>
 /// <param name='botName'>
 /// The name of the Bot resource.
 /// </param>
 /// <param name='parameters'>
 /// The parameters to provide for the required bot.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <HealthBot> UpdateAsync(this IBotsOperations operations, string resourceGroupName, string botName, HealthBotUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, botName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Patch a HealthBot.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Bot resource group in the user subscription.
 /// </param>
 /// <param name='botName'>
 /// The name of the Bot resource.
 /// </param>
 /// <param name='parameters'>
 /// The parameters to provide for the required bot.
 /// </param>
 public static HealthBot Update(this IBotsOperations operations, string resourceGroupName, string botName, HealthBotUpdateParameters parameters)
 {
     return(operations.UpdateAsync(resourceGroupName, botName, parameters).GetAwaiter().GetResult());
 }